mercurial/commands.py
changeset 46909 067840864f37
parent 46908 4452cb788404
child 46910 df7439cc6806
--- a/mercurial/commands.py	Mon Apr 12 06:34:54 2021 +0200
+++ b/mercurial/commands.py	Mon Apr 12 22:22:56 2021 +0200
@@ -5720,12 +5720,9 @@
                 # this lets simultaneous -r, -b options continue working
                 opts.setdefault(b'rev', []).append(b"null")
 
-    if not dests:
-        dests = [None]
     some_pushed = False
     result = 0
-    for dest in dests:
-        path = ui.getpath(dest, default=(b'default-push', b'default'))
+    for path in urlutil.get_push_paths(repo, ui, dests):
         if not path:
             raise error.ConfigError(
                 _(b'default repository not configured!'),