tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 30 Aug 2018 19:50:39 +0200
changeset 4045 821e4be40c6c
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
prune: replace --biject with --pair People have been complaining about `--biject` being to obscure for a while. A recent discussion with Pulkit Goyal and Dan Villiom Podlaski Christiansen produce some new concrete proposal that we liked. We eventually settle on using `--pair`. The `--biject` flag will be kept as an alias for a while.

# 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