[PATCH 3 of 3] dispatch: include chained exceptions in printed tracebacks when using --debugger

Matt Harbison matt_harbison at yahoo.com
Wed Feb 6 23:42:44 CST 2013


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1360211210 18000
# Branch stable
# Node ID 3d7b4fcbf3429181b531a42bf899c2f6d647d37b
# Parent  2c31ee8efad0e21d79d7caba2e306e918aa7798f
dispatch: include chained exceptions in printed tracebacks when using --debugger

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -91,7 +91,8 @@
         except: # re-raises
             # enter the debugger when we hit an exception
             if '--debugger' in req.args:
-                traceback.print_exc()
+                ui.tracebackflag=True
+                ui.traceback()
                 pdb.post_mortem(sys.exc_info()[2])
             ui.traceback()
             raise


More information about the Mercurial-devel mailing list