[PATCH] hghave: wrap command in 'sh -c "..."' for has_pyflakes()
Adrian Buehlmann
adrian at cadifra.com
Tue Jun 5 09:33:12 CDT 2012
On 2012-05-27 18:26, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1338135904 -7200
> # Node ID 2561df05f1099b0b5e80dc78c39532d112a718fd
> # Parent 9d98b66af823e868878fb74a00d8f658dceb705d
> hghave: wrap command in 'sh -c "..."' for has_pyflakes()
>
> Without this, the has_pyflakes() check always fails in MSYS on Windows.
>
> diff --git a/tests/hghave b/tests/hghave
> --- a/tests/hghave
> +++ b/tests/hghave
> @@ -202,7 +202,7 @@
> os.rmdir(d)
>
> def has_pyflakes():
> - return matchoutput('echo "import re" 2>&1 | pyflakes',
> + return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
> r"<stdin>:1: 're' imported but unused",
> True)
Ping? timeless?
More information about the Mercurial-devel
mailing list