# HG changeset patch # User Pierre-Yves David # Date 1400780917 25200 # Node ID 1daad9dcdba28253b801e8b3952a19a4f58e66b3 # Parent 83bbfb23cb24b473286d528ddccbb333329f7f29 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. diff -r 83bbfb23cb24 -r 1daad9dcdba2 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