tests/testlib/pythonpath.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 01 Sep 2018 21:47:00 +0200
changeset 4063 00c65abf99cd
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
topic-revset: strictly read string Making a clear distinction between string and symbol passed to topic is important when it comes to empty topic. Filtering an empty topic name is harmless. Searching a non existent revision is not.

# 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