--- 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:])