Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundle2.py @ 25322:1f7c0403f8be
bundle2: add generic debug output regarding generated bundle
If we are about to hide the detailed debug output, we need some generic debug
message to replace it in a more compact way.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 27 May 2015 00:10:30 -0700 |
parents | b44ee346211f |
children | 21a25fb81d2c |
line wrap: on
line diff
--- a/mercurial/bundle2.py Wed May 27 00:52:01 2015 -0700 +++ b/mercurial/bundle2.py Wed May 27 00:10:30 2015 -0700 @@ -472,6 +472,12 @@ # methods used to generate the bundle2 stream def getchunks(self): + if self.ui.debugflag: + msg = ['bundle2-output-bundle: "%s",' % self._magicstring] + if self._params: + msg.append(' (%i params)' % len(self._params)) + msg.append(' %i parts total\n' % len(self._parts)) + self.ui.debug(''.join(msg)) outdebug(self.ui, 'start emission of %s stream' % self._magicstring) yield self._magicstring param = self._paramchunk()