hghave: check darcs version more strictly
authorYuya Nishihara <yuya@tcha.org>
Sat, 05 Nov 2016 13:20:53 +0900
changeset 30311 d4db88a26ad5
parent 30310 ab929a174f7b
child 30312 1e5346313963
hghave: check darcs version more strictly test-convert-darcs.t suddenly started failing on my Debian sid machine. The reason was Darcs was upgraded from 2.12.0 to 2.12.4 so the original pattern got to match the last two digits. Fix the pattern to match 2.2+.
tests/hghave.py
--- a/tests/hghave.py	Sat Nov 05 13:16:40 2016 +0900
+++ b/tests/hghave.py	Sat Nov 05 13:20:53 2016 +0900
@@ -150,7 +150,7 @@
 
 @check("darcs", "darcs client")
 def has_darcs():
-    return matchoutput('darcs --version', br'2\.[2-9]', True)
+    return matchoutput('darcs --version', br'\b2\.([2-9]|\d{2})', True)
 
 @check("mtn", "monotone client (>= 1.0)")
 def has_mtn():