--- a/mercurial/commands.py Sat Oct 31 22:15:16 2015 +0900
+++ b/mercurial/commands.py Sat Oct 31 22:17:05 2015 +0900
@@ -5972,10 +5972,9 @@
if opts["cmdserver"]:
import commandserver
service = commandserver.createservice(ui, repo, opts)
- return cmdutil.service(opts, initfn=service.init, runfn=service.run)
-
- service = hgweb.createservice(ui, repo, opts)
- cmdutil.service(opts, initfn=service.init, runfn=service.run)
+ else:
+ service = hgweb.createservice(ui, repo, opts)
+ return cmdutil.service(opts, initfn=service.init, runfn=service.run)
@command('^status|st',
[('A', 'all', None, _('show status of all files')),