docs/tutorial/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Wed, 13 Jun 2018 15:47:19 +0530
changeset 3840 231f593ccd5f
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
CHANGELOG: add an entry about the --update flag Since --update is still the default, we make the entry about --no-update.

# 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