tests/hghave
branchstable
changeset 1014 58b7f58ae08c
parent 1013 e00f51032041
child 1027 f8c2547c8f16
--- a/tests/hghave	Mon Nov 07 03:14:55 2011 +0100
+++ b/tests/hghave	Mon Nov 07 03:24:53 2011 +0100
@@ -215,6 +215,9 @@
 def has_system_sh():
     return os.name != 'nt'
 
+def has_serve():
+    return os.name != 'nt' # gross approximation
+
 checks = {
     "baz": (has_baz, "GNU Arch baz client"),
     "bzr": (has_bzr, "Canonical's Bazaar client"),
@@ -237,6 +240,7 @@
     "p4": (has_p4, "Perforce server and client"),
     "pyflakes": (has_pyflakes, "Pyflakes python linter"),
     "pygments": (has_pygments, "Pygments source highlighting library"),
+    "serve": (has_serve, "platform and python can manage 'hg serve -d'"),
     "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"),
     "svn": (has_svn, "subversion client and admin tools"),
     "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),