ui: send traceback of devel warning to appropriate output stream
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Oct 2015 23:10:40 +0900
changeset 26451 c8f42c1926a5
parent 26450 1138e1d05207
child 26452 499d5c98e98b
ui: send traceback of devel warning to appropriate output stream If ui.ferr is a command-server channel, traceback should be written to it.
mercurial/ui.py
--- 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)