Mercurial > hg-stable
diff mercurial/ui.py @ 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 | 60558319ce72 |
children | 56b2bcea2529 |
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)