remotenames: don't call a set of nodes as "revs"
authorYuya Nishihara <yuya@tcha.org>
Fri, 05 Oct 2018 21:36:48 +0900
changeset 40067 fba7428a0ef9
parent 40066 fe64178103b7
child 40068 b313f2c3b8c6
remotenames: don't call a set of nodes as "revs"
hgext/remotenames.py
--- 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):