--- a/mercurial/dispatch.py Mon Jun 05 23:36:35 2017 +0900
+++ b/mercurial/dispatch.py Sun Apr 23 00:31:29 2017 +0900
@@ -88,13 +88,13 @@
status = -1
if util.safehasattr(req.ui, 'fout'):
try:
- req.ui.fout.close()
+ req.ui.fout.flush()
except IOError as err:
status = -1
if util.safehasattr(req.ui, 'ferr'):
if err is not None and err.errno != errno.EPIPE:
req.ui.ferr.write('abort: %s\n' % err.strerror)
- req.ui.ferr.close()
+ req.ui.ferr.flush()
sys.exit(status & 255)
def _getsimilar(symbols, value):