mercurial/commands.py
changeset 46910 df7439cc6806
parent 46909 067840864f37
child 46915 efc6f6a794bd
--- a/mercurial/commands.py	Mon Apr 12 22:22:56 2021 +0200
+++ b/mercurial/commands.py	Tue Apr 13 12:28:44 2021 +0200
@@ -5387,12 +5387,8 @@
         hint = _(b'use hg pull followed by hg update DEST')
         raise error.InputError(msg, hint=hint)
 
-    if not sources:
-        sources = [b'default']
-    for source in sources:
-        source, branches = urlutil.parseurl(
-            ui.expandpath(source), opts.get(b'branch')
-        )
+    sources = urlutil.get_pull_paths(repo, ui, sources, opts.get(b'branch'))
+    for source, branches in sources:
         ui.status(_(b'pulling from %s\n') % urlutil.hidepassword(source))
         ui.flush()
         other = hg.peer(repo, opts, source)