debugdiscovery: use `get_unique_pull_path`
Lets move this code to the new API.
Differential Revision: https://phab.mercurial-scm.org/D10426
--- 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: