Patchwork D10415: identify: use `get_unique_pull_path`

login
register
mail settings
Submitter phabricator
Date April 14, 2021, 11:40 p.m.
Message ID <differential-rev-PHID-DREV-uato23okfgjlsrbxg5cn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48732/
State Superseded
Headers show

Comments

phabricator - April 14, 2021, 11:40 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The command only support a single destination. We use the associated API.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3863,7 +3863,9 @@ 
     peer = None
     try:
         if source:
-            source, branches = urlutil.parseurl(ui.expandpath(source))
+            source, branches = urlutil.get_unique_pull_path(
+                b'identify', repo, ui, source
+            )
             # only pass ui when no repo
             peer = hg.peer(repo or ui, opts, source)
             repo = peer.local()