mercurial/commands.py
changeset 25931 a0847285d207
parent 25903 9bbab9decd71
child 26024 84c00f03e06c
--- a/mercurial/commands.py	Sat Aug 08 00:47:19 2015 -0700
+++ b/mercurial/commands.py	Sat Aug 08 14:30:39 2015 -0700
@@ -13,7 +13,7 @@
 import hg, scmutil, util, revlog, copies, error, bookmarks
 import patch, help, encoding, templatekw, discovery
 import archival, changegroup, cmdutil, hbisect
-import sshserver, hgweb, commandserver
+import sshserver, hgweb
 import extensions
 from hgweb import server as hgweb_server
 import merge as mergemod
@@ -5713,6 +5713,7 @@
         s.serve_forever()
 
     if opts["cmdserver"]:
+        import commandserver
         service = commandserver.createservice(ui, repo, opts)
         return cmdutil.service(opts, initfn=service.init, runfn=service.run)