changeset 13811:65c1d309ab91

changegroup: remove nodeiter temporary
author Matt Mackall <mpm@selenic.com>
date Thu, 31 Mar 2011 09:56:27 -0500
parents 0252abaafb8a
children 2b70683888b9
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Mar 30 17:50:34 2011 -0500
+++ b/mercurial/localrepo.py	Thu Mar 31 09:56:27 2011 -0500
@@ -1621,7 +1621,6 @@
             self.ui.progress(_('bundling'), None)
 
             mnfst = self.manifest
-            nodeiter = gennodelst(mnfst)
             count = [0]
             def mlookup(revlog, x):
                 count[0] += 1
@@ -1629,7 +1628,7 @@
                                  unit=_('manifests'), total=changecount)
                 return cl.node(revlog.linkrev(revlog.rev(x)))
 
-            for chunk in mnfst.group(nodeiter, mlookup):
+            for chunk in mnfst.group(gennodelst(mnfst), mlookup):
                 yield chunk
             self.ui.progress(_('bundling'), None)
 
@@ -1638,14 +1637,13 @@
                 if not len(filerevlog):
                     raise util.Abort(_("empty or missing revlog for %s") % fname)
                 first = True
-                nodeiter = gennodelst(filerevlog)
                 def flookup(revlog, x):
                     self.ui.progress(
                         _('bundling'), idx, item=fname,
                         total=efiles, unit=_('files'))
                     return cl.node(revlog.linkrev(revlog.rev(x)))
 
-                for chunk in filerevlog.group(nodeiter, flookup):
+                for chunk in filerevlog.group(gennodelst(filerevlog), flookup):
                     if first:
                         if chunk == changegroup.closechunk():
                             break