# HG changeset patch # User Yuya Nishihara # Date 2015-10-03 14:10:40 # Node ID c8f42c1926a557dd6ab05a76c4c6d1899a05fe9d # Parent 1138e1d052071eb3775469aeaf5aa4e7a545fbe8 ui: send traceback of devel warning to appropriate output stream If ui.ferr is a command-server channel, traceback should be written to it. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -994,7 +994,7 @@ class ui(object): """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)