##// END OF EJS Templates
hghave: detect darcs client
Patrick Mezard -
r5410:2daecf3d default
parent child Browse files
Show More
@@ -27,6 +27,9 b' def has_cvs():'
27 def has_cvsps():
27 def has_cvsps():
28 return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True)
28 return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True)
29
29
30 def has_darcs():
31 return matchoutput('darcs', 'darcs version', True)
32
30 def has_eol_in_paths():
33 def has_eol_in_paths():
31 try:
34 try:
32 fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
35 fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
@@ -85,6 +88,7 b' def has_symlink():'
85 checks = {
88 checks = {
86 "cvs": (has_cvs, "cvs client"),
89 "cvs": (has_cvs, "cvs client"),
87 "cvsps": (has_cvsps, "cvsps utility"),
90 "cvsps": (has_cvsps, "cvsps utility"),
91 "darcs": (has_darcs, "darcs client"),
88 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
92 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
89 "execbit": (has_executablebit, "executable bit"),
93 "execbit": (has_executablebit, "executable bit"),
90 "fifo": (has_fifo, "named pipes"),
94 "fifo": (has_fifo, "named pipes"),
General Comments 0
You need to be logged in to leave comments. Login now