tests/testlib/pythonpath.sh
author Boris Feld <boris.feld@octobus.net>
Fri, 26 May 2017 13:18:26 +0200
changeset 2488 1bdbe8f55339
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
refactor: extract obs fate algorithm from _getobsoletereason Refactor _getobsoletereason to extract the obs fate computation into a separate function, it will be used later and put it in obshistory as it will be needed in other files. Rename _getobsoletereason to _getobsoletefateandsuccessors.

# 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