comparison tests/hghave @ 16872:40d930848fd0

hghave: wrap command in 'sh -c "..."' for has_pyflakes() Without this, the has_pyflakes() check always fails in MSYS on Windows.
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 27 May 2012 18:25:04 +0200
parents cfb6682961b8
children b0e8afdfa970
comparison
equal deleted inserted replaced
16871:d566aa319d5f 16872:40d930848fd0
200 return True 200 return True
201 finally: 201 finally:
202 os.rmdir(d) 202 os.rmdir(d)
203 203
204 def has_pyflakes(): 204 def has_pyflakes():
205 return matchoutput('echo "import re" 2>&1 | pyflakes', 205 return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
206 r"<stdin>:1: 're' imported but unused", 206 r"<stdin>:1: 're' imported but unused",
207 True) 207 True)
208 208
209 def has_pygments(): 209 def has_pygments():
210 try: 210 try: