Mercurial > public > mercurial-scm > hg
comparison mercurial/server.py @ 30513:ff7df4bb75de
chgserver: make it a core module and drop extension flags
It was an extension just because there were several dependency cycles I
needed to address.
I don't add 'chgserver' to extensions._builtin since chgserver is considered
an internal extension so nobody should enable it by their config.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 15 Oct 2016 14:30:16 +0900 |
parents | a0878bc87379 |
children | ce4ddcda868b |
comparison
equal
deleted
inserted
replaced
30512:cc374292a561 | 30513:ff7df4bb75de |
---|---|
13 import tempfile | 13 import tempfile |
14 | 14 |
15 from .i18n import _ | 15 from .i18n import _ |
16 | 16 |
17 from . import ( | 17 from . import ( |
18 chgserver, | |
18 commandserver, | 19 commandserver, |
19 error, | 20 error, |
20 hgweb, | 21 hgweb, |
21 util, | 22 util, |
22 ) | 23 ) |
107 | 108 |
108 if runfn: | 109 if runfn: |
109 return runfn() | 110 return runfn() |
110 | 111 |
111 _cmdservicemap = { | 112 _cmdservicemap = { |
113 'chgunix': chgserver.chgunixservice, | |
112 'pipe': commandserver.pipeservice, | 114 'pipe': commandserver.pipeservice, |
113 'unix': commandserver.unixforkingservice, | 115 'unix': commandserver.unixforkingservice, |
114 } | 116 } |
115 | 117 |
116 def _createcmdservice(ui, repo, opts): | 118 def _createcmdservice(ui, repo, opts): |