equal
deleted
inserted
replaced
20 hgweb, |
20 hgweb, |
21 pycompat, |
21 pycompat, |
22 util, |
22 util, |
23 ) |
23 ) |
24 |
24 |
25 from .utils import procutil |
25 from .utils import ( |
|
26 procutil, |
|
27 urlutil, |
|
28 ) |
26 |
29 |
27 |
30 |
28 def runservice( |
31 def runservice( |
29 opts, |
32 opts, |
30 parentfn=None, |
33 parentfn=None, |
182 |
185 |
183 |
186 |
184 def _createhgwebservice(ui, repo, opts): |
187 def _createhgwebservice(ui, repo, opts): |
185 # this way we can check if something was given in the command-line |
188 # this way we can check if something was given in the command-line |
186 if opts.get(b'port'): |
189 if opts.get(b'port'): |
187 opts[b'port'] = util.getport(opts.get(b'port')) |
190 opts[b'port'] = urlutil.getport(opts.get(b'port')) |
188 |
191 |
189 alluis = {ui} |
192 alluis = {ui} |
190 if repo: |
193 if repo: |
191 baseui = repo.baseui |
194 baseui = repo.baseui |
192 alluis.update([repo.baseui, repo.ui]) |
195 alluis.update([repo.baseui, repo.ui]) |