43
43
class ShelfReporter(object):
45
vocab = {'add file': 'Shelve adding file "%(path)s"?',
46
'binary': 'Shelve binary changes?',
47
'change kind': 'Shelve changing "%s" from %(other)s'
49
'delete file': 'Shelve removing file "%(path)s"?',
50
'final': 'Shelve %d change(s)?',
52
'modify target': 'Shelve changing target of'
53
' "%(path)s" from "%(other)s" to "%(this)s"?',
54
'rename': 'Shelve renaming "%(other)s" =>'
45
vocab = {'add file': gettext('Shelve adding file "%(path)s"?'),
46
'binary': gettext('Shelve binary changes?'),
47
'change kind': gettext('Shelve changing "%s" from %(other)s'
49
'delete file': gettext('Shelve removing file "%(path)s"?'),
50
'final': gettext('Shelve %d change(s)?'),
51
'hunk': gettext('Shelve?'),
52
'modify target': gettext('Shelve changing target of'
53
' "%(path)s" from "%(other)s" to "%(this)s"?'),
54
'rename': gettext('Shelve renaming "%(other)s" =>'
58
58
invert_diff = False
95
95
class ApplyReporter(ShelfReporter):
97
vocab = {'add file': 'Delete file "%(path)s"?',
98
'binary': 'Apply binary changes?',
99
'change kind': 'Change "%(path)s" from %(this)s'
101
'delete file': 'Add file "%(path)s"?',
102
'final': 'Apply %d change(s)?',
103
'hunk': 'Apply change?',
104
'modify target': 'Change target of'
105
' "%(path)s" from "%(this)s" to "%(other)s"?',
106
'rename': 'Rename "%(this)s" => "%(other)s"?',
97
vocab = {'add file': gettext('Delete file "%(path)s"?'),
98
'binary': gettext('Apply binary changes?'),
99
'change kind': gettext('Change "%(path)s" from %(this)s'
101
'delete file': gettext('Add file "%(path)s"?'),
102
'final': gettext('Apply %d change(s)?'),
103
'hunk': gettext('Apply change?'),
104
'modify target': gettext('Change target of'
105
' "%(path)s" from "%(this)s" to "%(other)s"?'),
106
'rename': gettext('Rename "%(this)s" => "%(other)s"?'),
109
109
invert_diff = True