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

backout: move repo busy count updates to backout dialog

Changeset 7ec39fe83774

Parent 2edff1509404

by Steve Borho

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

 
18
19
20
21
22
23
24
25
 
146
147
148
 
149
150
151
 
163
164
165
 
166
167
168
 
170
171
172
173
174
175
176
 
18
19
20
 
 
21
22
23
 
144
145
146
147
148
149
150
 
162
163
164
165
166
167
168
 
170
171
172
 
173
174
175
@@ -18,8 +18,6 @@
   class BackoutDialog(QDialog):   - repoInvalidated = pyqtSignal() -   def __init__(self, repo=None, rev='tip', parent=None, opts={}):   super(BackoutDialog, self).__init__(parent)   self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) @@ -146,6 +144,7 @@
  cmdline += ['--message', hglib.fromunicode(msg)]     # start backing out + self.repo.incrementBusyCount()   self.cmd.run(cmdline)     ### Signal Handlers ### @@ -163,6 +162,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) @@ -170,7 +170,6 @@
  self.close_btn.setFocus()   self.cancel_btn.setHidden(True)   else: - self.repoInvalidated.emit()   self.accept()     def command_canceling(self):
 
557
558
559
560
561
562
563
564
565
566
 
557
558
559
 
560
561
 
562
563
564
@@ -557,10 +557,8 @@
  dlg.exec_()     def backoutToRevision(self): - self.repo.incrementBusyCount()   dlg = backout.BackoutDialog(self.repo, str(self.rev), self)   dlg.exec_() - self.repo.decrementBusyCount()     def stripRevision(self):   'Strip the selected revision and all descendants'