Author: fijal
Branch: 
Changeset: r92115:1a9ef5428d4e
Date: 2017-08-09 13:19 +0200
http://bitbucket.org/pypy/pypy/changeset/1a9ef5428d4e/

Log:    warn only if mercurial explodes

diff --git a/rpython/tool/version.py b/rpython/tool/version.py
--- a/rpython/tool/version.py
+++ b/rpython/tool/version.py
@@ -59,8 +59,8 @@
     p = Popen([str(hgexe), 'id', '-i', root],
               stdout=PIPE, stderr=PIPE, env=env)
     hgid = p.stdout.read().strip()
-    maywarn(p.stderr.read())
     if p.wait() != 0:
+        maywarn(p.stderr.read())
         hgid = '?'
 
     p = Popen([str(hgexe), 'id', '-t', root],
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to