--- a/mercurial/server.py Sun Apr 11 23:54:35 2021 +0200
+++ b/mercurial/server.py Mon Apr 12 03:01:04 2021 +0200
@@ -22,7 +22,10 @@
util,
)
-from .utils import procutil
+from .utils import (
+ procutil,
+ urlutil,
+)
def runservice(
@@ -184,7 +187,7 @@
def _createhgwebservice(ui, repo, opts):
# this way we can check if something was given in the command-line
if opts.get(b'port'):
- opts[b'port'] = util.getport(opts.get(b'port'))
+ opts[b'port'] = urlutil.getport(opts.get(b'port'))
alluis = {ui}
if repo: