Mercurial > hg-stable
changeset 49844:0058c74d7f72
path: pass `path` to `peer` in narrow
We directly use the `path` object to build the `peer` object.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Dec 2022 06:38:03 +0100 |
parents | c130d2d8d775 |
children | 8d0a220caee5 |
files | hgext/narrow/narrowcommands.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py Fri Dec 02 06:37:15 2022 +0100 +++ b/hgext/narrow/narrowcommands.py Fri Dec 02 06:38:03 2022 +0100 @@ -606,10 +606,9 @@ # 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. - 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) + path = urlutil.get_unique_pull_path_obj(b'tracked', ui, remotepath) + ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(path.loc)) + remote = hg.peer(repo, opts, path) try: # check narrow support before doing anything if widening needs to be