Mercurial > hg
changeset 49735:8c6f783917e7
path: pass `path` to `peer` in `hg fastannotate`
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:48:17 +0100 |
parents | 4dfcdb20ffc7 |
children | a804242050c4 |
files | hgext/fastannotate/protocol.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/fastannotate/protocol.py Fri Dec 02 06:45:46 2022 +0100 +++ b/hgext/fastannotate/protocol.py Fri Dec 02 06:48:17 2022 +0100 @@ -151,8 +151,11 @@ ui = repo.ui remotedest = ui.config(b'fastannotate', b'remotepath', b'default') - r = urlutil.get_unique_pull_path(b'fastannotate', repo, ui, remotedest) - remotepath = r[0] + remotepath = urlutil.get_unique_pull_path_obj( + b'fastannotate', + ui, + remotedest, + ) peer = hg.peer(ui, {}, remotepath) try: