debugdiscovery: use `get_unique_pull_path`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 21:11:39 +0200
changeset 46959 9e021cffb356
parent 46958 5a6a1cd21f09
child 46960 69359c91dc43
debugdiscovery: use `get_unique_pull_path` Lets move this code to the new API. Differential Revision: https://phab.mercurial-scm.org/D10426
mercurial/debugcommands.py
--- 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: