Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

thgstrip: move repo busy count updates to strip dialog

Changeset 2edff1509404

Parent 886afc2beb92

by Steve Borho

Changes to 2 files · Browse files at 2edff1509404 Showing diff from parent 886afc2beb92 Diff from another changeset...

 
564
565
566
567
568
569
570
 
571
572
573
 
564
565
566
 
567
 
 
568
569
570
571
@@ -564,10 +564,8 @@
    def stripRevision(self):   'Strip the selected revision and all descendants' - self.repo.incrementBusyCount()   dlg = thgstrip.StripDialog(self.repo, rev=str(self.rev), parent=self) - self.reload() - self.repo.decrementBusyCount() + dlg.exec_()     def emailRevision(self):   run.email(self.repo.ui, rev=[str(self.rev)], repo=self.repo)
 
18
19
20
21
22
23
24
25
 
216
217
218
 
219
220
221
 
238
239
240
 
241
242
243
 
245
246
247
248
249
250
251
 
18
19
20
 
 
21
22
23
 
214
215
216
217
218
219
220
 
237
238
239
240
241
242
243
 
245
246
247
 
248
249
250
@@ -18,8 +18,6 @@
 class StripDialog(QDialog):   """Dialog to strip changesets"""   - repoInvalidated = pyqtSignal() -   def __init__(self, repo=None, rev=None, parent=None, opts={}):   super(StripDialog, self).__init__(parent)   self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) @@ -216,6 +214,7 @@
  cmdline.append('--nobackup')     # start the strip + self.repo.incrementBusyCount()   self.cmd.run(cmdline)     ### Signal Handlers ### @@ -238,6 +237,7 @@
  self.detail_btn.setShown(True)     def command_finished(self, wrapper): + self.repo.decrementBusyCount()   if wrapper.data is not 0 or self.cmd.is_show_output():   self.detail_btn.setChecked(True)   self.close_btn.setShown(True) @@ -245,7 +245,6 @@
  self.close_btn.setFocus()   self.cancel_btn.setHidden(True)   else: - self.repoInvalidated.emit()   self.accept()     def command_canceling(self):