changeset 21597:1daad9dcdba2

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 22 May 2014 10:48:37 -0700
parents 83bbfb23cb24
children 1b0dbb91de5b
files mercurial/bundle2.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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