# HG changeset patch # User Pierre-Yves David # Date 1618414167 -7200 # Node ID 3800a6aafb6ff339edd4c347b6d2d84904e2c3b1 # Parent 946db89607c8802873c5a4457d07a937c316ee41 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 diff -r 946db89607c8 -r 3800a6aafb6f mercurial/commands.py --- 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()