Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/hghave Wed Mar 04 18:42:24 2009 -0600 +++ b/tests/hghave Tue Mar 03 21:32:23 2009 +0000 @@ -125,6 +125,9 @@ except ImportError: return False +def has_p4(): + return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/') + def has_symlink(): return hasattr(os, "symlink") @@ -173,6 +176,7 @@ "lsprof": (has_lsprof, "python lsprof module"), "mtn": (has_mtn, "monotone client (> 0.31)"), "outer-repo": (has_outer_repo, "outer repo"), + "p4": (has_p4, "Perforce server and client"), "pygments": (has_pygments, "Pygments source highlighting library"), "svn": (has_svn, "subversion client and admin tools"), "svn-bindings": (has_svn_bindings, "subversion python bindings"),