Mercurial > hg
changeset 30297:d4db88a26ad5
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+.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 05 Nov 2016 13:20:53 +0900 |
parents | ab929a174f7b |
children | 1e5346313963 |
files | tests/hghave.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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():