changeset 5410:2daecf3d2582

hghave: detect darcs client
author Patrick Mezard <pmezard@gmail.com>
date Sun, 07 Oct 2007 18:58:44 +0200
parents 190c234c8fa0
children d5df426bd68a
files tests/hghave
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave	Sun Oct 07 18:58:36 2007 +0200
+++ b/tests/hghave	Sun Oct 07 18:58:44 2007 +0200
@@ -27,6 +27,9 @@
 def has_cvsps():
     return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True)
 
+def has_darcs():
+    return matchoutput('darcs', 'darcs version', True)
+
 def has_eol_in_paths():
     try:
         fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
@@ -85,6 +88,7 @@
 checks = {
     "cvs": (has_cvs, "cvs client"),
     "cvsps": (has_cvsps, "cvsps utility"),
+    "darcs": (has_darcs, "darcs client"),
     "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
     "execbit": (has_executablebit, "executable bit"),
     "fifo": (has_fifo, "named pipes"),