changeset 26451:c8f42c1926a5

ui: send traceback of devel warning to appropriate output stream If ui.ferr is a command-server channel, traceback should be written to it.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Oct 2015 23:10:40 +0900
parents 1138e1d05207
children 499d5c98e98b
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Sat Oct 03 14:57:24 2015 +0900
+++ b/mercurial/ui.py	Sat Oct 03 23:10:40 2015 +0900
@@ -994,7 +994,7 @@
         """issue a developer warning message"""
         msg = 'devel-warn: ' + msg
         if self.tracebackflag:
-            util.debugstacktrace(msg, 2)
+            util.debugstacktrace(msg, 2, self.ferr, self.fout)
         else:
             curframe = inspect.currentframe()
             calframe = inspect.getouterframes(curframe, 2)