changeset 26710:730f328624ab

changegroup: rename manifest linknode closure for clarity Since I'm spending the time to understand this code, I may as well leave it clearer than I found it.
author Augie Fackler <augie@google.com>
date Wed, 30 Sep 2015 19:59:12 -0400
parents 42733e956887
children 0ef0aec56090
files mercurial/changegroup.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Tue Sep 29 15:14:03 2015 -0400
+++ b/mercurial/changegroup.py	Wed Sep 30 19:59:12 2015 -0400
@@ -639,7 +639,7 @@
         # Callback for the manifest, used to collect linkrevs for filelog
         # revisions.
         # Returns the linkrev node (collected in lookupcl).
-        def lookupmf(x):
+        def lookupmflinknode(x):
             clnode = mfs[x]
             if not fastpathlinkrev:
                 mdata = ml.readfast(x)
@@ -655,7 +655,8 @@
 
         mfnodes = self.prune(ml, mfs, commonrevs)
         size = 0
-        for chunk in self.group(mfnodes, ml, lookupmf, units=_('manifests')):
+        for chunk in self.group(
+                mfnodes, ml, lookupmflinknode, units=_('manifests')):
             size += len(chunk)
             yield chunk
         self._verbosenote(_('%8.i (manifests)\n') % size)