Show More
@@ -1183,16 +1183,15 b' def filterpatch(ui, headers, match, oper' | |||
|
1183 | 1183 | if skipfile is not None: |
|
1184 | 1184 | return skipfile, skipfile, skipall, newpatches |
|
1185 | 1185 | while True: |
|
1186 | ui.flush() | |
|
1186 | 1187 | resps = messages[b'help'][operation] |
|
1187 | 1188 | # IMPORTANT: keep the last line of this prompt short (<40 english |
|
1188 | 1189 | # chars is a good target) because of issue6158. |
|
1189 | 1190 | r = ui.promptchoice(b"%s\n(enter ? for help) %s" % (query, resps)) |
|
1190 | 1191 | ui.write(b"\n") |
|
1191 | ui.flush() | |
|
1192 | 1192 | if r == 8: # ? |
|
1193 | 1193 | for c, t in ui.extractchoices(resps)[1]: |
|
1194 | 1194 | ui.write(b'%s - %s\n' % (c, encoding.lower(t))) |
|
1195 | ui.flush() | |
|
1196 | 1195 | continue |
|
1197 | 1196 | elif r == 0: # yes |
|
1198 | 1197 | ret = True |
@@ -1202,12 +1201,10 b' def filterpatch(ui, headers, match, oper' | |||
|
1202 | 1201 | if chunk is None: |
|
1203 | 1202 | ui.write(_(b'cannot edit patch for whole file')) |
|
1204 | 1203 | ui.write(b"\n") |
|
1205 | ui.flush() | |
|
1206 | 1204 | continue |
|
1207 | 1205 | if chunk.header.binary(): |
|
1208 | 1206 | ui.write(_(b'cannot edit patch for binary file')) |
|
1209 | 1207 | ui.write(b"\n") |
|
1210 | ui.flush() | |
|
1211 | 1208 | continue |
|
1212 | 1209 | # Patch comment based on the Git one (based on comment at end of |
|
1213 | 1210 | # https://mercurial-scm.org/wiki/RecordExtension) |
@@ -1308,7 +1305,6 b' the hunk is left unchanged.' | |||
|
1308 | 1305 | for i, chunk in enumerate(h.hunks): |
|
1309 | 1306 | if skipfile is None and skipall is None: |
|
1310 | 1307 | chunk.pretty(ui) |
|
1311 | ui.flush() | |
|
1312 | 1308 | if total == 1: |
|
1313 | 1309 | msg = messages[b'single'][operation] % chunk.filename() |
|
1314 | 1310 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now