changegroup: rename 'mf' to 'ml' to match 'cl', since it's a revlog
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 28 Apr 2015 10:19:42 -0700
changeset 24899 cf1ea7566b20
parent 24898 0bbf061564cf
child 24900 59d1bf41af85
changegroup: rename 'mf' to 'ml' to match 'cl', since it's a revlog The 'mf' variable is a manifest revlog, not a manifest, so let's rename it accordingly. We already call the changelog variable 'cl', so 'ml' seems appropriate.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Mon Apr 20 14:11:20 2015 -0700
+++ b/mercurial/changegroup.py	Tue Apr 28 10:19:42 2015 -0700
@@ -358,7 +358,7 @@
         '''yield a sequence of changegroup chunks (strings)'''
         repo = self._repo
         cl = self._changelog
-        mf = self._manifest
+        ml = self._manifest
         reorder = self._reorder
         progress = self._progress
 
@@ -396,7 +396,7 @@
         def lookupmf(x):
             clnode = mfs[x]
             if not fastpathlinkrev or reorder:
-                mdata = mf.readfast(x)
+                mdata = ml.readfast(x)
                 for f, n in mdata.iteritems():
                     if f in changedfiles:
                         # record the first changeset introducing this filelog
@@ -407,9 +407,9 @@
                             fclnodes[n] = clnode
             return clnode
 
-        mfnodes = self.prune(mf, mfs, commonrevs)
+        mfnodes = self.prune(ml, mfs, commonrevs)
         size = 0
-        for chunk in self.group(mfnodes, mf, lookupmf, units=_('manifests'),
+        for chunk in self.group(mfnodes, ml, lookupmf, units=_('manifests'),
                                 reorder=reorder):
             size += len(chunk)
             yield chunk