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

login
register
mail settings
Submitter Pierre-Yves David
Date May 29, 2015, 9:22 p.m.
Message ID <deed9c6b12d29bc40443.1432934521@waste.org>
Download mbox | patch
Permalink /patch/9395/
State Accepted
Headers show

Comments

Pierre-Yves David - May 29, 2015, 9:22 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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)],