[PATCH] interactive: make sure buffer is flushed before waiting for user input
Yuya Nishihara
yuya at tcha.org
Sat Aug 5 23:02:21 EDT 2017
On Sat, 5 Aug 2017 13:20:15 -0700, Kostia Balytskyi wrote:
> # HG changeset patch
> # User Kostia Balytskyi <ikostia at fb.com>
> # Date 1501964349 25200
> # Sat Aug 05 13:19:09 2017 -0700
> # Node ID 6065399003c83344df50209068ea85d82b3382d7
> # Parent 609606d217659e0a6c1cf6f907b6512be5340e57
> interactive: make sure buffer is flushed before waiting for user input
Marked as (issue5587) and queued for stable, thanks.
> diff --git a/mercurial/ui.py b/mercurial/ui.py
> --- a/mercurial/ui.py
> +++ b/mercurial/ui.py
> @@ -1218,6 +1218,7 @@ class ui(object):
> sys.stdout = self.fout
> # prompt ' ' must exist; otherwise readline may delete entire line
> # - http://bugs.python.org/issue12833
> + self.flush()
> with self.timeblockedsection('stdio'):
I've moved flush() immediately after the write() so it won't break into
backup/restore stdio.
More information about the Mercurial-devel
mailing list