Mercurial > evolve
view tests/testlib/pythonpath.sh @ 2926:1abafae41fe2
evolve: use registrar.templatekeyword to register template keyword functions
Now, using registrar.templatekeyword of Mercurial directly in evolve
extension should be safe enough. because it has been available since
Mercurial 3.8, and minimum Mercurial version for evolve extension is
3.8, too.
BTW, this also fixes an issue of "hg help templates" output that
template keywords "precursors" and "successors" are not displayed as
same as others, because they do not have ":KEYWORD:" prefix in their
docstring.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 07 Aug 2017 23:22:41 +0900 |
parents | 994d81caec68 |
children | 9980df8eda98 |
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 export PYTHONPATH=$SRCDIR:$PYTHONPATH else export PYTHONPATH=$SRCDIR fi