--- a/hgext/infinitepush/__init__.py Mon Apr 12 03:01:04 2021 +0200
+++ b/hgext/infinitepush/__init__.py Mon Apr 12 06:34:54 2021 +0200
@@ -116,6 +116,7 @@
from mercurial.utils import (
procutil,
stringutil,
+ urlutil,
)
from mercurial import (
@@ -683,7 +684,9 @@
def _pull(orig, ui, repo, source=b"default", **opts):
opts = pycompat.byteskwargs(opts)
# Copy paste from `pull` command
- source, branches = hg.parseurl(ui.expandpath(source), opts.get(b'branch'))
+ source, branches = urlutil.parseurl(
+ ui.expandpath(source), opts.get(b'branch')
+ )
scratchbookmarks = {}
unfi = repo.unfiltered()