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

Matt Harbison matt_harbison at yahoo.com
Sat Feb 9 00:06:45 CST 2013


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1360388823 18000
# Branch stable
# Node ID 1d5e86b74e77d9b26e90159d42bd68822866c748
# Parent  1744b3545df41d6202a0f0857a17d1053ad44b71
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