[PATCH 8 of 8] bundle2: add generic debug output regarding generated interruption

Pierre-Yves David pierre-yves.david at fb.com
Fri May 29 16:22:01 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 deed9c6b12d29bc404433d1eabad762d974acaf5
# Parent  21a25fb81d2cce049c78a7d1d93ab9c9408de44d
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
@@ -804,6 +804,8 @@
                 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)],


More information about the Mercurial-devel mailing list