mercurial/server.py
changeset 46907 ffd3e823a7e5
parent 46819 d4ba4d51f85f
child 48875 6000f5b25c9b
--- 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: