D10415: identify: use `get_unique_pull_path`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Wed Apr 14 23:40:15 UTC 2021
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
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()
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list