Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

quickop: add '--no-backup' option for revert operation

Changeset 007b5705db34

Parent 277ce852e61c

by Yuki KODAMA

Changes to one file · Browse files at 007b5705db34 Showing diff from parent 277ce852e61c Diff from another changeset...

 
112
113
114
115
 
 
 
 
 
116
117
118
119
120
 
 
 
 
 
 
 
 
 
 
121
122
123
 
220
221
222
223
 
224
225
226
 
254
255
256
 
 
257
258
259
 
112
113
114
 
115
116
117
118
119
120
121
 
 
 
122
123
124
125
126
127
128
129
130
131
132
133
134
 
231
232
233
 
234
235
236
237
 
265
266
267
268
269
270
271
272
@@ -112,12 +112,23 @@
  for row in self.filetree.get_model():   row[0] = not row[0]   - hbox = gtk.HBox() + # extra box + self.extrabox = hbox = gtk.HBox() + self.vbox.pack_start(hbox, False, False, 2) + + ## toggle button   tb = gtk.Button(_('Toggle all selections'))   tb.connect('pressed', toggleall) - self.toggleall = tb - hbox.pack_start(tb, False, False, 0) - self.vbox.pack_start(hbox, False, False, 2) + hbox.pack_start(tb, False, False) + + if command == 'revert': + ## no backup checkbox + chk = gtk.CheckButton(_('Do not save backup files (*.orig)')) + hbox.pack_start(chk, False, False, 6) + self.nobackup = chk + + ## padding + hbox.pack_start(gtk.Label())     types = { 'add' : 'I?',   'forget' : 'MAR!C', @@ -220,7 +231,7 @@
  working = not normal     self.filetree.set_sensitive(normal) - self.toggleall.set_sensitive(normal) + self.extrabox.set_sensitive(normal)   self.gobutton.set_property('visible', normal)   self.closebtn.set_property('visible', normal)   if cmd: @@ -254,6 +265,8 @@
  return     cmdline = ['hg', self.command, '--verbose'] + list + if self.nobackup.get_active(): + cmdline.append('--no-backup')     def cmd_done(returncode, useraborted):   self.switch_to(MODE_NORMAL, cmd=False)