docs/tutorial/testlib/pythonpath.sh
author Sushil khanchi <sushilkhanchi97@gmail.com>
Tue, 02 Jul 2019 21:00:46 +0530
branchstable
changeset 4701 1b5da965d72a
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
prune: add tests to demonstrate issue6137 Here we can see that prune updates off to the parent revision even when the pruned revision wasn't related with the working directory parent. A follow-up patch will fix this.

# utility to setup pythonpath to point into the tested repository

export SRCDIR=`dirname $TESTDIR`
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    export PYTHONPATH=$SRCDIR:$PYTHONPATH
else
    export PYTHONPATH=$SRCDIR
fi