diff mercurial/commands.py @ 30509:add7bcad1d9c

server: move service factory from hgweb
author Yuya Nishihara <yuya@tcha.org>
date Sat, 15 Oct 2016 14:09:36 +0900
parents dd539e2d89aa
children a0878bc87379
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Oct 15 14:06:46 2016 +0900
+++ b/mercurial/commands.py	Sat Oct 15 14:09:36 2016 +0900
@@ -51,7 +51,6 @@
     hbisect,
     help,
     hg,
-    hgweb,
     localrepo,
     lock as lockmod,
     merge as mergemod,
@@ -6300,7 +6299,7 @@
     if opts["cmdserver"]:
         service = server.createcmdservice(ui, repo, opts)
     else:
-        service = hgweb.createservice(ui, repo, opts)
+        service = server.createhgwebservice(ui, repo, opts)
     return server.runservice(opts, initfn=service.init, runfn=service.run)
 
 @command('^status|st',