##// END OF EJS Templates
hghave: detect git availability
Patrick Mezard -
r5218:4fa0f2df default
parent child Browse files
Show More
@@ -51,9 +51,16 b' def has_lsprof():'
51 except ImportError:
51 except ImportError:
52 return False
52 return False
53
53
54 def has_git():
55 fh = os.popen('git --version 2>&1')
56 s = fh.read()
57 ret = fh.close()
58 return ret is None and s.startswith('git version')
59
54 checks = {
60 checks = {
55 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
61 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
56 "execbit": (has_executablebit, "executable bit"),
62 "execbit": (has_executablebit, "executable bit"),
63 "git": (has_git, "git command line client"),
57 "fifo": (has_fifo, "named pipes"),
64 "fifo": (has_fifo, "named pipes"),
58 "hotshot": (has_hotshot, "python hotshot module"),
65 "hotshot": (has_hotshot, "python hotshot module"),
59 "lsprof": (has_lsprof, "python lsprof module"),
66 "lsprof": (has_lsprof, "python lsprof module"),
General Comments 0
You need to be logged in to leave comments. Login now