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.
--- 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