revlog: rename bundle to cg to reflect its nature as a cg?unpacker
authorAugie Fackler <augie@google.com>
Wed, 14 Oct 2015 11:32:33 -0400
changeset 26705 2f5c45fe3a3b
parent 26704 d7e614513413
child 26706 8c0c3059f478
revlog: rename bundle to cg to reflect its nature as a cg?unpacker The new convention is that bundles contain changegroups. bundle1 happens to *only* be a changegroup, but bundle2 is a more featureful container that isn't something you can pass to addgroup().
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Oct 13 17:16:10 2015 -0400
+++ b/mercurial/revlog.py	Wed Oct 14 11:32:33 2015 -0400
@@ -1442,7 +1442,7 @@
             ifh.write(data[1])
             self.checkinlinesize(transaction, ifh)
 
-    def addgroup(self, bundle, linkmapper, transaction, addrevisioncb=None):
+    def addgroup(self, cg, linkmapper, transaction, addrevisioncb=None):
         """
         add a delta group
 
@@ -1479,7 +1479,7 @@
             # loop through our set of deltas
             chain = None
             while True:
-                chunkdata = bundle.deltachunk(chain)
+                chunkdata = cg.deltachunk(chain)
                 if not chunkdata:
                     break
                 node = chunkdata['node']