105
105
class HunkSelector:
106
__usage = """Your options are:
107
y - keep this change in your tree.
108
n - shelve this change for the moment.
109
i - invert the current selection.
110
s - status, show what's selected to be shelved.
111
q - quit the shelve command.\n"""
114
def __init__(self, char, action, default=False):
107
def __init__(self, char, action, help, default=False):
116
109
self.action = action
117
110
self.default = default
119
113
standard_options = [
120
Option('n', 'shelve', default=True),
123
Option('i', 'invert'),
124
Option('s', 'status'),
114
Option('n', 'shelve', 'shelve this change for the moment.',
116
Option('y', 'keep', 'keep this change in your tree.'),
117
Option('d', 'done', 'done, skip to the end.'),
118
Option('i', 'invert', 'invert the current selection of all hunks.'),
119
Option('s', 'status', 'show status of hunks.'),
120
Option('q', 'quit', 'quit')
129
Option('y', 'continue', default=True),
130
Option('r', 'restart'),
131
Option('s', 'status'),
132
Option('i', 'invert'),
124
Option('y', 'continue', 'proceed to shelve selected changes.',
126
Option('r', 'restart', 'restart the hunk selection loop.'),
127
Option('s', 'status', 'show status of hunks.'),
128
Option('i', 'invert', 'invert the current selection of all hunks.'),
129
Option('q', 'quit', 'quit')
136
132
def __init__(self, patches):