changegroup: optimize gennodelist
authorMatt Mackall <mpm@selenic.com>
Fri, 13 Apr 2012 22:55:46 -0500
changeset 16425 70bf4dc52c91
parent 16424 ff63d71ac8ab
child 16426 b50fee9a2dad
changegroup: optimize gennodelist
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Apr 13 22:55:46 2012 -0500
+++ b/mercurial/localrepo.py	Fri Apr 13 22:55:46 2012 -0500
@@ -1944,7 +1944,9 @@
         revset = set([cl.rev(n) for n in nodes])
 
         def gennodelst(log):
-            return [log.node(r) for r in log if log.linkrev(r) in revset]
+            ln, llr = log.node, log.linkrev
+            return [ln(r) for r in log if llr(r) in revset]
+
         progress = self.ui.progress
         _bundling = _('bundling')
         _changesets = _('changesets')