docs/tutorial/testlib/pythonpath.sh
author Rodrigo Damazio Bovendorp <rdamazio@google.com>
Thu, 07 May 2020 19:47:59 -0700
changeset 5352 10368b3427b1
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
utility: deal with having multiple When a revision has multiple prune obsolescence markers, it's thought to be a split, and the way we try to deal with splits currently crashes.

# 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