diff -r 5a6a1cd21f09 -r 9e021cffb356 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: