view tests/testlib/pythonpath.sh @ 6269:16f6b18b9ec0

topicmap: remove unused branchtip and branchheads methods of _topiccache These methods aren't unused per say, but they never receive topic keyword from any callers, so they simply always call+return super() version of themselves.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 08 Jul 2022 17:52:25 +0400
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