# HG changeset patch # User Patrick Mezard # Date 1191776324 -7200 # Node ID 2daecf3d2582a3074b04f3ce06a2d14fda7e09eb # Parent 190c234c8fa0708854a9cbc5aba939014948bcef hghave: detect darcs client diff --git a/tests/hghave b/tests/hghave --- a/tests/hghave +++ b/tests/hghave @@ -27,6 +27,9 @@ def has_cvs(): 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 @@ def has_symlink(): 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"),