hgext/infinitepush/__init__.py
changeset 46943 30ee1224b9a2
parent 46911 6071bfab6292
child 47873 c424ff4807e6
--- a/hgext/infinitepush/__init__.py	Wed Apr 14 12:29:44 2021 +0200
+++ b/hgext/infinitepush/__init__.py	Fri Apr 16 10:46:52 2021 +0200
@@ -684,8 +684,12 @@
 def _pull(orig, ui, repo, source=b"default", **opts):
     opts = pycompat.byteskwargs(opts)
     # Copy paste from `pull` command
-    source, branches = urlutil.parseurl(
-        ui.expandpath(source), opts.get(b'branch')
+    source, branches = urlutil.get_unique_pull_path(
+        b"infinite-push's pull",
+        repo,
+        ui,
+        source,
+        default_branches=opts.get(b'branch'),
     )
 
     scratchbookmarks = {}