diff mercurial/dispatch.py @ 32041:38963a53ab0d

dispatch: print traceback in scmutil.callcatch() if --traceback specified Otherwise, traceback wouldn't be printed for a known exception occurred in worker processes.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 15 Apr 2017 13:02:34 +0900
parents 0fb78cb90ca7
children cde72a195f32
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sat Apr 15 12:58:06 2017 +0900
+++ b/mercurial/dispatch.py	Sat Apr 15 13:02:34 2017 +0900
@@ -255,7 +255,6 @@
             if '--debugger' in req.args:
                 traceback.print_exc()
                 debugmortem[debugger](sys.exc_info()[2])
-            ui.traceback()
             raise
 
     return _callcatch(ui, _runcatchfunc)