docs/tutorial/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 19 Jun 2018 23:21:54 +0530 (2018-06-19)
changeset 3856 9c0b37be8582
parent 3376 aad37ffd7d58
child 5227 b24de4b465ea
permissions -rw-r--r--
evolve: move the bookmarks also when updating to successor (issue5923) When we are on an obsolete node and does `hg evolve`, it updates to it's sucessor, however it does not move the bookmark to the successor. This patch adds logic to make sure we move the bookmark too. Test change demonstrates the fix.
# 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