tests/testlib/pythonpath.sh
author Boris Feld <boris.feld@octobus.net>
Mon, 19 Jun 2017 15:56:28 +0200
changeset 2635 9ab35c37b85a
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
obslog: pass directly unfiltered_repo _debugobshistorydisplaynode used to create two times an unfiltered repo, makes _debugobshistoryrevs create only one unfiltered repo and pass it directly.

# 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