tests/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 28 Aug 2017 17:16:16 +0200
changeset 2869 b629874ccaac
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
topics: allow use a --current when setting a topic This patch allow to use the current flag which can be used by user set existing revs to the current topic.

# 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