# HG changeset patch # User Pierre-Yves David # Date 1432706539 25200 # Node ID e28245b0da56c15350dd5c76be4d59b4c603f014 # Parent 18c2bcc2c9d5077816f1c46c6d996b327c48e227 bundle2: handle new line in 'outdebug' function Now that we have a prefix, it make sense to assume all output will be on a single line. diff -r 18c2bcc2c9d5 -r e28245b0da56 mercurial/bundle2.py --- a/mercurial/bundle2.py Tue May 26 22:57:35 2015 -0700 +++ b/mercurial/bundle2.py Tue May 26 23:02:19 2015 -0700 @@ -175,7 +175,7 @@ def outdebug(ui, message): """debug regarding output stream (bundling)""" - ui.debug('bundle2-output: %s' % message) + ui.debug('bundle2-output: %s\n' % message) def validateparttype(parttype): """raise ValueError if a parttype contains invalid character""" @@ -468,20 +468,20 @@ # methods used to generate the bundle2 stream def getchunks(self): - outdebug(self.ui, 'start emission of %s stream\n' % self._magicstring) + outdebug(self.ui, 'start emission of %s stream' % self._magicstring) yield self._magicstring param = self._paramchunk() - outdebug(self.ui, 'bundle parameter: %s\n' % param) + outdebug(self.ui, 'bundle parameter: %s' % param) yield _pack(_fstreamparamsize, len(param)) if param: yield param - outdebug(self.ui, 'start of parts\n') + outdebug(self.ui, 'start of parts') for part in self._parts: - outdebug(self.ui, 'bundle part: "%s"\n' % part.type) + outdebug(self.ui, 'bundle part: "%s"' % part.type) for chunk in part.getchunks(): yield chunk - outdebug(self.ui, 'end of bundle\n') + outdebug(self.ui, 'end of bundle') yield _pack(_fpartheadersize, 0) def _paramchunk(self):