mercurial/debugcommands.py
changeset 46959 9e021cffb356
parent 46908 4452cb788404
child 46960 69359c91dc43
--- a/mercurial/debugcommands.py	Wed Apr 14 21:02:38 2021 +0200
+++ b/mercurial/debugcommands.py	Wed Apr 14 21:11:39 2021 +0200
@@ -1060,7 +1060,9 @@
 
     if not remote_revs:
 
-        remoteurl, branches = urlutil.parseurl(ui.expandpath(remoteurl))
+        remoteurl, branches = urlutil.get_unique_pull_path(
+            b'debugdiscovery', repo, ui, remoteurl
+        )
         remote = hg.peer(repo, opts, remoteurl)
         ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(remoteurl))
     else: