# HG changeset patch # User Pierre-Yves David # Date 2022-12-02 05:48:17 # Node ID 8c6f783917e78efeb3cdcc04d21baa2eb32b0732 # Parent 4dfcdb20ffc70f55b2e2250af4df0c6ce1757bc1 path: pass `path` to `peer` in `hg fastannotate` We directly use the `path` object to build the `peer` object. diff --git a/hgext/fastannotate/protocol.py b/hgext/fastannotate/protocol.py --- a/hgext/fastannotate/protocol.py +++ b/hgext/fastannotate/protocol.py @@ -151,8 +151,11 @@ def annotatepeer(repo): 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: