[PATCH 2 of 2] tests: use the system hg for examining the local repository
Yuya Nishihara
yuya at tcha.org
Wed Jun 28 10:06:05 EDT 2017
On Tue, 27 Jun 2017 17:37:19 -0700, Adam Simpkins wrote:
> # HG changeset patch
> # User Adam Simpkins <simpkins at fb.com>
> # Date 1498609471 25200
> # Tue Jun 27 17:24:31 2017 -0700
> # Node ID 148ea34a2581415b8df897f2b22720d2cd3afdf0
> # Parent 6ce24ed2fa3f7a10d632f29b0f2a2da100884ba6
> tests: use the system hg for examining the local repository
> +# The mercurial source repository was typically orignally cloned with the
> +# system mercurial installation, and may require extensions or settings from
> +# the system installation.
> +function syshg {
> + (
> + syshgenv
> + exec hg "$@"
> + )
> +}
> +
> +# Revert the environment so that running "hg" runs the system hg
> +# rather than the test hg installation.
> +function syshgenv {
> + PATH="$ORIG_PATH"
> + PYTHONPATH="$ORIG_PYTHONPATH"
> + JYTHONPATH="$ORIG_JYTHONPATH"
> + unset HGRCPATH
> + HGPLAIN=1
> + export HGPLAIN
> +}
This breaks a handful of tests on non-Bash. I'll do
s/function \([[:alnum:]]*\)/\1 ()/.
More information about the Mercurial-devel
mailing list