Show More
@@ -428,6 +428,8 b' class uihunk(patchnode):' | |||||
428 | def filterpatch(ui, chunks, chunkselector, operation=None): |
|
428 | def filterpatch(ui, chunks, chunkselector, operation=None): | |
429 | """interactively filter patch chunks into applied-only chunks""" |
|
429 | """interactively filter patch chunks into applied-only chunks""" | |
430 |
|
430 | |||
|
431 | if operation is None: | |||
|
432 | operation = _('confirm') | |||
431 | chunks = list(chunks) |
|
433 | chunks = list(chunks) | |
432 | # convert chunks list into structure suitable for displaying/modifying |
|
434 | # convert chunks list into structure suitable for displaying/modifying | |
433 | # with curses. create a list of headers only. |
|
435 | # with curses. create a list of headers only. |
@@ -950,6 +950,8 b' class recordhunk(object):' | |||||
950 |
|
950 | |||
951 | def filterpatch(ui, headers, operation=None): |
|
951 | def filterpatch(ui, headers, operation=None): | |
952 | """Interactively filter patch chunks into applied-only chunks""" |
|
952 | """Interactively filter patch chunks into applied-only chunks""" | |
|
953 | if operation is None: | |||
|
954 | operation = _('record') | |||
953 |
|
955 | |||
954 | def prompt(skipfile, skipall, query, chunk): |
|
956 | def prompt(skipfile, skipall, query, chunk): | |
955 | """prompt query, and process base inputs |
|
957 | """prompt query, and process base inputs |
General Comments 0
You need to be logged in to leave comments.
Login now