mercurial/statichttprepo.py
changeset 46907 ffd3e823a7e5
parent 46819 d4ba4d51f85f
child 47225 d00177d08139
--- a/mercurial/statichttprepo.py	Sun Apr 11 23:54:35 2021 +0200
+++ b/mercurial/statichttprepo.py	Mon Apr 12 03:01:04 2021 +0200
@@ -26,6 +26,9 @@
     util,
     vfs as vfsmod,
 )
+from .utils import (
+    urlutil,
+)
 
 urlerr = util.urlerr
 urlreq = util.urlreq
@@ -162,7 +165,7 @@
         self.ui = ui
 
         self.root = path
-        u = util.url(path.rstrip(b'/') + b"/.hg")
+        u = urlutil.url(path.rstrip(b'/') + b"/.hg")
         self.path, authinfo = u.authinfo()
 
         vfsclass = build_opener(ui, authinfo)