changeset 46949:3800a6aafb6f

identify: use `get_unique_pull_path` The command only support a single destination. We use the associated API. Differential Revision: https://phab.mercurial-scm.org/D10415
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 17:29:27 +0200
parents 946db89607c8
children 279df499511e
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Apr 14 17:02:20 2021 +0200
+++ b/mercurial/commands.py	Wed Apr 14 17:29:27 2021 +0200
@@ -3864,7 +3864,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()