[PATCH 2 of 2] py3: flush ui after each message in interactive patch filtering

Yuya Nishihara yuya at tcha.org
Wed Oct 9 10:31:22 EDT 2019


On Wed, 09 Oct 2019 15:29:24 +0200, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis.laxalde at logilab.fr>
> # Date 1570627454 -7200
> #      Wed Oct 09 15:24:14 2019 +0200
> # Node ID 0cdeb24af4076eae433de3f63fda36da4e6fc0d0
> # Parent  99f06850be3ecc521ba461684686865c1191c5a0
> py3: flush ui after each message in interactive patch filtering

Queued, thanks.

> Otherwise, actions from ui.write() are buffered and displayed at end of
> interactive session.

I suspect that "sys.stdout.buffer" isn't line-buffered on Python 3 even
though "sys.stdout" is documented as such. If that's true, we'll need another
hack to make our stdout do the right thing.

https://docs.python.org/3/library/sys.html#sys.stdout


More information about the Mercurial-devel mailing list