mercurial/commands.py
changeset 46720 66fb04552122
parent 46663 a4c19a162615
child 46762 052ab8d0a538
--- a/mercurial/commands.py	Mon Mar 15 10:57:02 2021 +0100
+++ b/mercurial/commands.py	Thu Mar 11 17:26:49 2021 +0100
@@ -4946,7 +4946,7 @@
     """
     # hg._outgoing() needs to re-resolve the path in order to handle #branch
     # style URLs, so don't overwrite dest.
-    path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
+    path = ui.getpath(dest, default=(b'default-push', b'default'))
     if not path:
         raise error.ConfigError(
             _(b'default repository not configured!'),
@@ -5680,7 +5680,7 @@
                 # this lets simultaneous -r, -b options continue working
                 opts.setdefault(b'rev', []).append(b"null")
 
-    path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
+    path = ui.getpath(dest, default=(b'default-push', b'default'))
     if not path:
         raise error.ConfigError(
             _(b'default repository not configured!'),