Mercurial > hg-stable
changeset 25331:53ca47ef645d
bundle2: add generic debug output regarding processed bundle
If we are about to hide the detailed debug output, we need some generic debug
message to replace it in a concise way.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 27 May 2015 00:00:35 -0700 |
parents | 101e84121c13 |
children | 0cdd1c811705 |
files | mercurial/bundle2.py tests/test-bundle2-format.t |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Thu May 28 16:42:21 2015 -0400 +++ b/mercurial/bundle2.py Wed May 27 00:00:35 2015 -0700 @@ -318,6 +318,16 @@ # - replace this is a init function soon. # - exception catching unbundler.params + if repo.ui.debugflag: + msg = ['bundle2-input-bundle:'] + if unbundler.params: + msg.append(' %i params') + if op.gettransaction is None: + msg.append(' no-transaction') + else: + msg.append(' with-transaction') + msg.append('\n') + repo.ui.debug(''.join(msg)) iterparts = unbundler.iterparts() part = None try:
--- a/tests/test-bundle2-format.t Thu May 28 16:42:21 2015 -0400 +++ b/tests/test-bundle2-format.t Wed May 27 00:00:35 2015 -0700 @@ -550,6 +550,7 @@ $ hg unbundle2 --debug --config progress.debug=true < ../parts.hg2 bundle2-input: start processing of HG20 stream bundle2-input: reading bundle2 stream parameters + bundle2-input-bundle: with-transaction bundle2-input: start extraction of bundle2 parts bundle2-input: part header size: 17 bundle2-input: part type: "test:empty"