tests/testlib/pythonpath.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 05 Jun 2018 22:02:24 +0530
changeset 3799 037ccbf41c6d
parent 2046 994d81caec68
child 4332 9980df8eda98
permissions -rw-r--r--
tests: make sure we don't result in commit messages conflict Upcoming patches will introduce functionality of merging commit messages while resolving content divergence which can lead to conflicts. We don't want to test the conflicts scenario here, so let's make sure there are no conflicts of commit messages in this test.

# 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