bundle2: small doc update on the bundler
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 22 May 2014 10:48:37 -0700
changeset 21597 1daad9dcdba2
parent 21596 83bbfb23cb24
child 21598 1b0dbb91de5b
bundle2: small doc update on the bundler The `bundle20` class contains methods to help define the content and methods to generate the actual stream. We add small doc headers to help distinguish between the two.
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Fri Apr 25 15:44:55 2014 -0500
+++ b/mercurial/bundle2.py	Thu May 22 10:48:37 2014 -0700
@@ -391,6 +391,7 @@
         self._parts = []
         self.capabilities = dict(capabilities)
 
+    # methods used to defines the bundle2 content
     def addparam(self, name, value=None):
         """add a stream level parameter"""
         if not name:
@@ -407,6 +408,7 @@
         part.id = len(self._parts) # very cheap counter
         self._parts.append(part)
 
+    # methods used to generate the bundle2 stream
     def getchunks(self):
         self.ui.debug('start emission of %s stream\n' % _magicstring)
         yield _magicstring