[PATCH] interactive: make sure buffer is flushed before waiting for user input

Augie Fackler raf at durin42.com
Wed Aug 16 14:32:23 EDT 2017


On Tue, Aug 15, 2017 at 08:55:42PM +0000, Chuck Kirschman wrote:
> I filed 5604, and the solution (flushing) was the same. I have verified it in the 4.3.1 build. Thanks for the fix.
>
>
> -----Original Message-----
> From: Matt Harbison [mailto:mharbison72 at gmail.com]
> Sent: Saturday, August 5, 2017 10:57 PM
> To: Kostia Balytskyi <ikostia at fb.com>
> Cc: mercurial-devel at mercurial-scm.org; Chuck Kirschman <Chuck.Kirschman at bentley.com>
> Subject: Re: [PATCH] interactive: make sure buffer is flushed before waiting for user input
>
> On Sat, 05 Aug 2017 16:20:15 -0400, Kostia Balytskyi <ikostia at fb.com>
> 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
>
> Needs '(issue5587)' and applied to stable?  I'm not sure if issue5604, which was marked as a duplicate, actually is.

That's what happened, yeah. This was released as part of 4.3.1.

>
> > Without this patch on Windows 'hg ci -i' hangs waiting for user input
> > and "examine changes to 'file'? [Ynesfdaq?]" is never displayed (at
> > least if the diff is sufficiently small). When Ctrl+C is pressed, this
> > prompt becomes visible, which suggests that the buffer just wasn't flushed.
> > I've never seen this happening on Linux, but this looks harmless
> > enought to not platform-gate it.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list