# HG changeset patch # User Pierre-Yves David # Date 2021-04-14 19:11:39 # Node ID 9e021cffb3566e501aacc9bf72d4a1e1704ddecf # Parent 5a6a1cd21f0952dcd8bc0e18c80759b6801b039e debugdiscovery: use `get_unique_pull_path` Lets move this code to the new API. Differential Revision: https://phab.mercurial-scm.org/D10426 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1060,7 +1060,9 @@ def debugdiscovery(ui, repo, remoteurl=b 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: