[PATCH 2 of 2] hghave.py: make matchoutput return what it claims
timeless
timeless at mozdev.org
Tue Nov 24 16:33:10 CST 2015
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1448404316 0
# Tue Nov 24 22:31:56 2015 +0000
# Node ID 38e3dae719431d1b5287c1e9fd3bf012399a602b
# Parent f16e3652aabb27c0d8c995cb12773c3b87ff955f
hghave.py: make matchoutput return what it claims
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -81,7 +81,7 @@
ret = -1
ret = p.wait()
s = p.stdout.read()
- return (ignorestatus or not ret) and r.search(s)
+ return (ignorestatus or not ret) and r.search(s) is not None
@check("baz", "GNU Arch baz client")
def has_baz():
More information about the Mercurial-devel
mailing list