# HG changeset patch # User Bryan O'Sullivan # Date 1357766214 28800 # Node ID ecb744c2a1995913900755cf7e4c4508eb628b54 # Parent 1c0d52f233086fe56460548fd75f1d02ccb7fdb2 hghave: introduce a test (unused) for cvs >= 1.12 [ original upstream message ] diff -r 1c0d52f23308 -r ecb744c2a199 tests/hghave.py --- a/tests/hghave.py Tue Jan 08 20:37:37 2013 +0100 +++ b/tests/hghave.py Wed Jan 09 13:16:54 2013 -0800 @@ -41,6 +41,10 @@ re = r'Concurrent Versions System.*?server' return matchoutput('cvs --version 2>&1', re) and not has_msys() +def has_cvs112(): + re = r'Concurrent Versions System \(CVS\) 1.12.*?server' + return matchoutput('cvs --version 2>&1', re) and not has_msys() + def has_darcs(): return matchoutput('darcs --version', r'2\.[2-9]', True) @@ -278,6 +282,7 @@ "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), "cacheable": (has_cacheable_fs, "cacheable filesystem"), "cvs": (has_cvs, "cvs client/server"), + "cvs112": (has_cvs112, "cvs client/server >= 1.12"), "darcs": (has_darcs, "darcs client"), "docutils": (has_docutils, "Docutils text processing library"), "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),