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

login
register
mail settings
Submitter Denis Laxalde
Date Oct. 10, 2019, 2:16 p.m.
Message ID <70f768f545f7a89fa6d5.1570716986@steppe.local>
Download mbox | patch
Permalink /patch/42190/
State Accepted
Headers show

Comments

Denis Laxalde - Oct. 10, 2019, 2:16 p.m.
# HG changeset patch
# User Denis Laxalde <denis.laxalde@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.

Patch

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.