changeset 46937:8e6911426b88

narrow: use `get_unique_pull_path` The narrow's `tracked` command does not support multiple destination, lets use the dedicated API then. Differential Revision: https://phab.mercurial-scm.org/D10404
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 11:18:48 +0200
parents 1998a8311c48
children a48f15f1c178
files hgext/narrow/narrowcommands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Wed Apr 14 11:15:54 2021 +0200
+++ b/hgext/narrow/narrowcommands.py	Wed Apr 14 11:18:48 2021 +0200
@@ -593,8 +593,8 @@
         # Find the revisions we have in common with the remote. These will
         # be used for finding local-only changes for narrowing. They will
         # also define the set of revisions to update for widening.
-        remotepath = ui.expandpath(remotepath or b'default')
-        url, branches = urlutil.parseurl(remotepath)
+        r = urlutil.get_unique_pull_path(b'tracked', repo, ui, remotepath)
+        url, branches = r
         ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(url))
         remote = hg.peer(repo, opts, url)