comparison tests/hghave @ 8126:13b36eb14324

convert/bzr: handle files replaced by directories (issue1623)
author Patrick Mezard <pmezard@gmail.com>
date Thu, 23 Apr 2009 15:07:05 +0200
parents 11efa41037e2
children 17ab4dab50a6
comparison
equal deleted inserted replaced
8125:da9f3866c637 8126:13b36eb14324
26 26
27 def has_bzr(): 27 def has_bzr():
28 try: 28 try:
29 import bzrlib 29 import bzrlib
30 return bzrlib.__doc__ != None 30 return bzrlib.__doc__ != None
31 except ImportError:
32 return False
33
34 def has_bzr114():
35 try:
36 import bzrlib
37 return (bzrlib.__doc__ != None
38 and bzrlib.version_info[:2] == (1, 14))
31 except ImportError: 39 except ImportError:
32 return False 40 return False
33 41
34 def has_cvs(): 42 def has_cvs():
35 re = r'Concurrent Versions System.*?server' 43 re = r'Concurrent Versions System.*?server'
161 return matchoutput('hg root 2>&1', r'') 169 return matchoutput('hg root 2>&1', r'')
162 170
163 checks = { 171 checks = {
164 "baz": (has_baz, "GNU Arch baz client"), 172 "baz": (has_baz, "GNU Arch baz client"),
165 "bzr": (has_bzr, "Canonical's Bazaar client"), 173 "bzr": (has_bzr, "Canonical's Bazaar client"),
174 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
166 "cvs": (has_cvs, "cvs client/server"), 175 "cvs": (has_cvs, "cvs client/server"),
167 "cvsps": (has_cvsps, "cvsps utility"), 176 "cvsps": (has_cvsps, "cvsps utility"),
168 "darcs": (has_darcs, "darcs client"), 177 "darcs": (has_darcs, "darcs client"),
169 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), 178 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
170 "execbit": (has_executablebit, "executable bit"), 179 "execbit": (has_executablebit, "executable bit"),