view tests/testlib/pythonpath.sh @ 5591:18fa4797b5dd

evolvecmd: delete bookmark-handling code obsolete since move away from rebase We haven't relied on `rebase.rebasenode()` since 58370c718183 (evolve: use `merge.graft` instead of `rebasenode`, 2014-12-13), so we don't need to compensate for it.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 24 Sep 2020 16:15:58 -0700
parents 277b45cf0dda
children
line wrap: on
line source

# utility to setup pythonpath to point into the tested repository

export SRCDIR="`dirname $TESTDIR`"
if [ -n "$PYTHONPATH" ]; then
    export HGTEST_ORIG_PYTHONPATH=$PYTHONPATH
    if uname -o 2> /dev/null | grep -q Msys; then
        export PYTHONPATH="$SRCDIR;$PYTHONPATH"
    else
        export PYTHONPATH=$SRCDIR:$PYTHONPATH
    fi
else
    export PYTHONPATH=$SRCDIR
fi