# HG changeset patch # User Pierre-Yves David # Date 2022-12-02 04:11:53 # Node ID f632b9e1e04747616bf7708b4fd568a6b4f85b01 # Parent f3b685d9e8990faeec32eb2d6b24dfcbeff902f8 path: pass `path` to `peer` in `remote(...)` 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 @@ -2130,11 +2130,9 @@ def remote(repo, subset, x): dest = getstring(l[1], _(b"remote requires a repository path")) if not dest: dest = b'default' - dest, branches = urlutil.get_unique_pull_path( - b'remote', repo, repo.ui, dest - ) - - other = hg.peer(repo, {}, dest) + path = urlutil.get_unique_pull_path_obj(b'remote', repo.ui, dest) + + other = hg.peer(repo, {}, path) n = other.lookup(q) if n in repo: r = repo[n].rev()