docs/tutorial/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 25 Sep 2018 12:19:41 +0200 (2018-09-25)
changeset 4137 21a3c051ca6c
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
stablerange: fix slicing of arbitrary ranges Pull bundle trigger slicing from range with arbitrary initial skip. We have to adjust the current slicing to take this into account.
# 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