# HG changeset patch # User Yuya Nishihara # Date 1478319653 -32400 # Node ID d4db88a26ad53e20d1183581d1c73b82b0e96686 # Parent ab929a174f7b794b9e09c6ae4f3f8b6d39979241 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+. diff -r ab929a174f7b -r d4db88a26ad5 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():