Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.py @ 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 | deed9c6b12d2 |
children | 0cdd1c811705 |
comparison
equal
deleted
inserted
replaced
25329:101e84121c13 | 25331:53ca47ef645d |
---|---|
316 op = bundleoperation(repo, transactiongetter) | 316 op = bundleoperation(repo, transactiongetter) |
317 # todo: | 317 # todo: |
318 # - replace this is a init function soon. | 318 # - replace this is a init function soon. |
319 # - exception catching | 319 # - exception catching |
320 unbundler.params | 320 unbundler.params |
321 if repo.ui.debugflag: | |
322 msg = ['bundle2-input-bundle:'] | |
323 if unbundler.params: | |
324 msg.append(' %i params') | |
325 if op.gettransaction is None: | |
326 msg.append(' no-transaction') | |
327 else: | |
328 msg.append(' with-transaction') | |
329 msg.append('\n') | |
330 repo.ui.debug(''.join(msg)) | |
321 iterparts = unbundler.iterparts() | 331 iterparts = unbundler.iterparts() |
322 part = None | 332 part = None |
323 try: | 333 try: |
324 for part in iterparts: | 334 for part in iterparts: |
325 _processpart(op, part) | 335 _processpart(op, part) |