hghave: introduce a test (unused) for cvs >= 1.12
authorBryan O'Sullivan <bryano@fb.com>
Wed, 09 Jan 2013 13:16:54 -0800
changeset 18285 9589227657bc
parent 18284 e4be4e2ac814
child 18286 762f12b8ebae
hghave: introduce a test (unused) for cvs >= 1.12
tests/hghave.py
--- a/tests/hghave.py	Sun Jan 06 04:50:14 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"),