ui: send traceback of devel warning to appropriate output stream
If ui.ferr is a command-server channel, traceback should be written to it.
--- 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)