# HG changeset patch # User Pierre-Yves David # Date 2022-12-01 01:14:40 # Node ID e2a31b0bc5d00265392dc659c270078c4a92400c # Parent 30ac702a74880df77774ae6ca3d536dc10dae22f path: pass `path` to `peer` in the `outgoing` revset We directly use the `path` object to build the `peer` object. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1869,13 +1869,12 @@ def outgoing(repo, subset, x): dests = [] missing = set() for path in urlutil.get_push_paths(repo, repo.ui, dests): - dest = path.loc branches = path.branch, [] revs, checkout = hg.addbranchrevs(repo, repo, branches, []) if revs: revs = [repo.lookup(rev) for rev in revs] - other = hg.peer(repo, {}, dest) + other = hg.peer(repo, {}, path) try: with repo.ui.silent(): outgoing = discovery.findcommonoutgoing(