diff -r f140d6207cca -r c1ff82daed62 mercurial/ui.py --- a/mercurial/ui.py Thu Jun 11 19:02:24 2015 -0700 +++ b/mercurial/ui.py Fri Jun 12 22:09:41 2015 -0400 @@ -869,9 +869,8 @@ ''.join(causetb), ''.join(exconly)) else: - self.flush() # flush debug or status message - traceback.print_exception(exc[0], exc[1], exc[2], - file=self.ferr) + output = traceback.format_exception(exc[0], exc[1], exc[2]) + self.write_err(''.join(output)) return self.tracebackflag or force def geteditor(self):