Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable qqueue: register a commandFinished slot handler only once, remove old comments

Changeset 4620895da3e3

Parent da2821a84944

by Steve Borho

Changes to one file · Browse files at 4620895da3e3 Showing diff from parent da2821a84944 Diff from another changeset...

 
114
115
116
 
117
118
119
 
302
303
304
 
 
 
305
306
307
308
309
310
311
312
313
314
315
316
317
318
 
114
115
116
117
118
119
120
 
303
304
305
306
307
308
309
310
 
 
 
 
 
 
 
 
 
311
312
313
@@ -114,6 +114,7 @@
  cmd = cmdui.Runner()   cmd.output.connect(self.output)   cmd.makeLogVisible.connect(self.makeLogVisible) + cmd.commandFinished.connect(self.qqcmdFinished)     BB = QDialogButtonBox   bb = QDialogButtonBox(BB.Close) @@ -302,17 +303,11 @@
  opts = ['--purge', q]   self.qqueueCommand(opts)   + def qqcmdFinished(self): + self.repo.decrementBusyCount() +   def qqueueCommand(self, opts):   self.setButtonState(False) - def qqcmdFinished(): - self.repo.decrementBusyCount() - # This seems to cause excessive refreshes ?! - # See when using 'thgdbg qqueue' from the commandline. - # But when not used, the data are not reshown after a command. - # Is it ok to have 2 cmd threads in the same dialog ? - self.reload() - # self.updateUI() - self.cmd.commandFinished.connect(qqcmdFinished)   cmdline = ['qqueue', '--repository', self.repo.root] + opts   self.repo.incrementBusyCount()   self.cmd.run(cmdline)