docs/tutorial/testlib/pythonpath.sh
author Boris Feld <boris.feld@octobus.net>
Thu, 29 Mar 2018 14:13:13 +0200
changeset 3612 33b718191bc9
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
rebase: update the rebase wrapping to works with hg 4.6 Mercurial core commit bd0086bd3af4 removed _makeextrafn hence breaking our wrapping. Update the code to wrap rebaseruntime directly in a way that's compatible with hg 4.1+.

# 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