[PATCH 2 of 2] py3: drop ui.flush() during interactive patch filtering

Denis Laxalde denis at laxalde.org
Thu Oct 10 10:16:26 EDT 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1570716167 -7200
#      Thu Oct 10 16:02:47 2019 +0200
# Node ID 70f768f545f7a89fa6d53ea759af7ac431aee728
# Parent  63da27176ab9d0ac5dd58e0a6037469ce4bf5435
py3: drop ui.flush() during interactive patch filtering

With previous changeset fixing line buffering on stdout, this is no
longer needed.

diff --git a/mercurial/patch.py b/mercurial/patch.py
index 88b5029..f33222f 100644
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -1182,7 +1182,6 @@ def filterpatch(ui, headers, match, oper
         if skipfile is not None:
             return skipfile, skipfile, skipall, newpatches
         while True:
-            ui.flush()
             resps = messages[b'help'][operation]
             # IMPORTANT: keep the last line of this prompt short (<40 english
             # chars is a good target) because of issue6158.


More information about the Mercurial-devel mailing list