comparison tests/hghave @ 7823:11efa41037e2 1.2

convert: Perforce source for conversion to Mercurial
author Frank Kingswood <frank@kingswood-consulting.co.uk>
date Tue, 03 Mar 2009 21:32:23 +0000
parents 607de5bd3578
children 41a2c5cbcb6a 13b36eb14324
comparison
equal deleted inserted replaced
7822:1079e666e938 7823:11efa41037e2
122 if version < (1, 4): 122 if version < (1, 4):
123 return False 123 return False
124 return True 124 return True
125 except ImportError: 125 except ImportError:
126 return False 126 return False
127
128 def has_p4():
129 return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/')
127 130
128 def has_symlink(): 131 def has_symlink():
129 return hasattr(os, "symlink") 132 return hasattr(os, "symlink")
130 133
131 def has_tla(): 134 def has_tla():
171 "icasefs": (has_icasefs, "case insensitive file system"), 174 "icasefs": (has_icasefs, "case insensitive file system"),
172 "inotify": (has_inotify, "inotify extension support"), 175 "inotify": (has_inotify, "inotify extension support"),
173 "lsprof": (has_lsprof, "python lsprof module"), 176 "lsprof": (has_lsprof, "python lsprof module"),
174 "mtn": (has_mtn, "monotone client (> 0.31)"), 177 "mtn": (has_mtn, "monotone client (> 0.31)"),
175 "outer-repo": (has_outer_repo, "outer repo"), 178 "outer-repo": (has_outer_repo, "outer repo"),
179 "p4": (has_p4, "Perforce server and client"),
176 "pygments": (has_pygments, "Pygments source highlighting library"), 180 "pygments": (has_pygments, "Pygments source highlighting library"),
177 "svn": (has_svn, "subversion client and admin tools"), 181 "svn": (has_svn, "subversion client and admin tools"),
178 "svn-bindings": (has_svn_bindings, "subversion python bindings"), 182 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
179 "symlink": (has_symlink, "symbolic links"), 183 "symlink": (has_symlink, "symbolic links"),
180 "tla": (has_tla, "GNU Arch tla client"), 184 "tla": (has_tla, "GNU Arch tla client"),