D10426: debugdiscovery: use `get_unique_pull_path`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Wed Apr 14 23:41:05 UTC 2021


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Lets move this code to the new API.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10426

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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:



To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list