Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable quickop: provide checkbox to force removal of modified files

Changeset 6e1c38818a80

Parent e5d69f492b7c

by David Golub

Changes to one file · Browse files at 6e1c38818a80 Showing diff from parent e5d69f492b7c Diff from another changeset...

 
80
81
82
 
 
 
 
 
 
83
84
85
 
128
129
130
131
 
 
 
 
132
133
134
 
80
81
82
83
84
85
86
87
88
89
90
91
 
134
135
136
 
137
138
139
140
141
142
143
@@ -80,6 +80,12 @@
  if self.command == 'revert':   ## no backup checkbox   chk = QCheckBox(_('Do not save backup files (*.orig)')) + elif self.command == 'remove': + ## force checkbox + chk = QCheckBox(_('Force removal of modified files (--force)')) + else: + chk = None + if chk:   self.chk = chk   hbox.addWidget(chk)   @@ -128,7 +134,10 @@
  def accept(self):   cmdline = [self.command]   if hasattr(self, 'chk') and self.chk.isChecked(): - cmdline.append('--no-backup') + if self.command == 'revert': + cmdline.append('--no-backup') + elif self.command == 'remove': + cmdline.append('--force')   files = self.stwidget.getChecked()   if not files:   qtlib.WarningMsgBox(_('No files selected'),