[PATCH 7 of 7 main-line-of-works (28 more patches to go)]] bundle2: add generic debug output regarding generated interruption

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu May 28 11:53:18 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1432711349 25200
#      Wed May 27 00:22:29 2015 -0700
# Node ID 894b5a04697d5f129ff1b73cd2ca689169b8e497
# Parent  4cd5a7c810b47ed664d868a80bff4fdb9b3c6a60
bundle2: add generic debug output regarding generated interruption

If we are about to hide the detailed debug output, we need some generic debug
message to replace it in a concise way.

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -802,10 +802,12 @@ class bundlepart(object):
                 outdebug(ui, 'payload chunk size: %i' % len(chunk))
                 yield _pack(_fpayloadsize, len(chunk))
                 yield chunk
         except BaseException, exc:
             # backup exception data for later
+            ui.debug('bundle2-input-stream-interrupt: encoding exception %s'
+                     % exc)
             exc_info = sys.exc_info()
             msg = 'unexpected error: %s' % exc
             interpart = bundlepart('error:abort', [('message', msg)],
                                    mandatory=False)
             interpart.id = 0


More information about the Mercurial-devel mailing list