diff -r 33524c46a092 -r ffd3e823a7e5 mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Apr 11 23:54:35 2021 +0200 +++ b/mercurial/localrepo.py Mon Apr 12 03:01:04 2021 +0200 @@ -85,6 +85,7 @@ hashutil, procutil, stringutil, + urlutil, ) from .revlogutils import ( @@ -3404,7 +3405,7 @@ def instance(ui, path, create, intents=None, createopts=None): - localpath = util.urllocalpath(path) + localpath = urlutil.urllocalpath(path) if create: createrepository(ui, localpath, createopts=createopts)