Mercurial > hg
changeset 28534:293adbaa14a7
dispatch: flush ui before returning from dispatch
A chg client may exit after received the result from runcommand. It is
necessary to do a flush to make sure the warning message is printed out
and the process waiting for the chg client will actually see the output.
This helps chg to pass test-alias.t.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 14 Mar 2016 11:06:34 +0000 |
parents | dfd5a6830ea7 |
children | aa082a8125da |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Tue Mar 15 00:14:53 2016 +0900 +++ b/mercurial/dispatch.py Mon Mar 14 11:06:34 2016 +0000 @@ -129,6 +129,7 @@ ret = -1 finally: duration = time.time() - starttime + req.ui.flush() req.ui.log("commandfinish", "%s exited %s after %0.2f seconds\n", msg, ret or 0, duration) return ret