Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 43166:a5b04863dbff
py3: drop ui.flush() during interactive patch filtering
With previous changeset fixing line buffering on stdout, this is no
longer needed.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 10 Oct 2019 16:02:47 +0200 |
parents | 0e6a7ce81dde |
children | eab0b7383cd3 313e3a279828 |
comparison
equal
deleted
inserted
replaced
43165:227ba1afcb65 | 43166:a5b04863dbff |
---|---|
1180 if skipall is not None: | 1180 if skipall is not None: |
1181 return skipall, skipfile, skipall, newpatches | 1181 return skipall, skipfile, skipall, newpatches |
1182 if skipfile is not None: | 1182 if skipfile is not None: |
1183 return skipfile, skipfile, skipall, newpatches | 1183 return skipfile, skipfile, skipall, newpatches |
1184 while True: | 1184 while True: |
1185 ui.flush() | |
1186 resps = messages[b'help'][operation] | 1185 resps = messages[b'help'][operation] |
1187 # IMPORTANT: keep the last line of this prompt short (<40 english | 1186 # IMPORTANT: keep the last line of this prompt short (<40 english |
1188 # chars is a good target) because of issue6158. | 1187 # chars is a good target) because of issue6158. |
1189 r = ui.promptchoice(b"%s\n(enter ? for help) %s" % (query, resps)) | 1188 r = ui.promptchoice(b"%s\n(enter ? for help) %s" % (query, resps)) |
1190 ui.write(b"\n") | 1189 ui.write(b"\n") |