tests/dumbhttp.py
changeset 30506 d9d8d78e6bc9
parent 29566 075146e85bb6
child 31004 d05fefbb5ab3
--- a/tests/dumbhttp.py	Wed Aug 17 20:41:05 2016 -0700
+++ b/tests/dumbhttp.py	Sat Oct 15 13:47:43 2016 +0900
@@ -11,7 +11,7 @@
 import sys
 
 from mercurial import (
-    cmdutil,
+    server,
     util,
 )
 
@@ -51,5 +51,5 @@
             'daemon': not options.foreground,
             'daemon_postexec': options.daemon_postexec}
     service = simplehttpservice(options.host, options.port)
-    cmdutil.service(opts, initfn=service.init, runfn=service.run,
-                    runargs=[sys.executable, __file__] + sys.argv[1:])
+    server.runservice(opts, initfn=service.init, runfn=service.run,
+                      runargs=[sys.executable, __file__] + sys.argv[1:])