# HG changeset patch # User Adrian Buehlmann # Date 1338135904 -7200 # Node ID f26e9129f65b3f2e2d7516853eb4a51a852767fb # Parent e2d5315a6e38186c5dff1266b7d4fb0bacf6f1e0 hghave: wrap command in 'sh -c "..."' for has_pyflakes() Without this, the has_pyflakes() check always fails in MSYS on Windows. [ original upstream message ] diff -r e2d5315a6e38 -r f26e9129f65b tests/hghave --- a/tests/hghave Fri Jun 08 15:11:05 2012 +0200 +++ b/tests/hghave Sun May 27 18:25:04 2012 +0200 @@ -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":1: 're' imported but unused", True)