Mercurial > evolve
view tests/testlib/pythonpath.sh @ 4347:59745d6d626d
evolve: extract "update" code into its own function
This patch moves the code to a function which handles the case when wdir
parent is obsolete and evolve will just update to its successor.
And extraction of this to a function will also help us to fix the
issue5881.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Fri, 18 Jan 2019 23:08:43 +0530 |
parents | 9980df8eda98 |
children | 33fc61e5e119 |
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 osname="`uname -o`" if (uname -o | grep -q Msys); then export PYTHONPATH="$SRCDIR;$PYTHONPATH" else export PYTHONPATH=$SRCDIR:$PYTHONPATH fi else export PYTHONPATH=$SRCDIR fi