Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 30507:dd539e2d89aa
server: move service table and factory from commandserver
This is necessary to solve future dependency cycle between commandserver.py
and chgserver.py.
'cmd' prefix is added to table and function names to avoid conflicts with
hgweb.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 15 Oct 2016 13:57:17 +0900 |
parents | d9d8d78e6bc9 |
children | add7bcad1d9c |
comparison
equal
deleted
inserted
replaced
30506:d9d8d78e6bc9 | 30507:dd539e2d89aa |
---|---|
33 archival, | 33 archival, |
34 bookmarks, | 34 bookmarks, |
35 bundle2, | 35 bundle2, |
36 changegroup, | 36 changegroup, |
37 cmdutil, | 37 cmdutil, |
38 commandserver, | |
39 copies, | 38 copies, |
40 dagparser, | 39 dagparser, |
41 dagutil, | 40 dagutil, |
42 destutil, | 41 destutil, |
43 dirstateguard, | 42 dirstateguard, |
6297 " (.hg not found)")) | 6296 " (.hg not found)")) |
6298 s = sshserver.sshserver(ui, repo) | 6297 s = sshserver.sshserver(ui, repo) |
6299 s.serve_forever() | 6298 s.serve_forever() |
6300 | 6299 |
6301 if opts["cmdserver"]: | 6300 if opts["cmdserver"]: |
6302 service = commandserver.createservice(ui, repo, opts) | 6301 service = server.createcmdservice(ui, repo, opts) |
6303 else: | 6302 else: |
6304 service = hgweb.createservice(ui, repo, opts) | 6303 service = hgweb.createservice(ui, repo, opts) |
6305 return server.runservice(opts, initfn=service.init, runfn=service.run) | 6304 return server.runservice(opts, initfn=service.init, runfn=service.run) |
6306 | 6305 |
6307 @command('^status|st', | 6306 @command('^status|st', |