docs/tutorial/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Fri, 16 Mar 2018 14:59:10 +0530
branchstable
changeset 3531 b3d2e0576d4c
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
prev: add a test case which shows traceback when doing prev on obsolete cset This patch adds a test which shows how `hg prev` is borken when called from a obsolete changeset and there is an active topic. The next patch will fix that.

# 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