bundle2: add generic debug output regarding generated interruption
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 May 2015 00:22:29 -0700
changeset 25324 deed9c6b12d2
parent 25323 21a25fb81d2c
child 25325 fcd2f9b06629
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.
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Wed May 27 00:19:16 2015 -0700
+++ b/mercurial/bundle2.py	Wed May 27 00:22:29 2015 -0700
@@ -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)],