Mercurial > hg
changeset 40067:fba7428a0ef9
remotenames: don't call a set of nodes as "revs"
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 05 Oct 2018 21:36:48 +0900 |
parents | fe64178103b7 |
children | b313f2c3b8c6 |
files | hgext/remotenames.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotenames.py Fri Oct 05 21:30:55 2018 +0900 +++ b/hgext/remotenames.py Fri Oct 05 21:36:48 2018 +0900 @@ -357,7 +357,7 @@ else: matcher = util.always - revs = set() + nodes = set() cl = repo.changelog for rtype in rtypes: if rtype in repo.names: @@ -365,10 +365,10 @@ for name in ns.listnames(repo): if not matcher(name): continue - revs.update(ns.nodes(repo, name)) + nodes.update(ns.nodes(repo, name)) - results = (cl.rev(n) for n in revs if cl.hasnode(n)) - return subset & smartset.baseset(sorted(results)) + revs = (cl.rev(n) for n in nodes if cl.hasnode(n)) + return subset & smartset.baseset(sorted(revs)) @revsetpredicate('remotenames([name])') def remotenamesrevset(repo, subset, x):