# HG changeset patch # User Adrian Buehlmann # Date 2012-05-27 16:25:04 # Node ID 40d930848fd01522618be181277dd6ad5ef7f08a # Parent d566aa319d5f7c58c69b985b53ff7498f08e53c6 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 @@ def has_unix_permissions(): 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":1: 're' imported but unused", True)