Commits

Anonymous committed 6e1c388

quickop: provide checkbox to force removal of modified files

  • Participants
  • Parent commits e5d69f4
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/quickop.py

         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)
 
     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'),