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

stable mq: clear new patch button after qnew

Changeset b669652cc012

Parent 2a9c0a40db96

by Steve Borho

Changes to one file · Browse files at b669652cc012 Showing diff from parent 2a9c0a40db96 Diff from another changeset...

 
32
33
34
 
35
36
37
 
227
228
229
230
231
 
 
 
232
233
234
 
401
402
403
 
 
404
405
406
 
409
410
411
 
412
413
414
 
32
33
34
35
36
37
38
 
228
229
230
 
 
231
232
233
234
235
236
 
403
404
405
406
407
408
409
410
 
413
414
415
416
417
418
419
@@ -32,6 +32,7 @@
  self.repo = repo   self.opts = opts   self.refreshing = False + self.finishfunc = None     layout = QVBoxLayout()   layout.setSpacing(4) @@ -227,8 +228,9 @@
  def onCommandFinished(self, ret):   self.qtbar.setEnabled(True)   self.repo.decrementBusyCount() - if ret is not 0: - pass # TODO: look for reject notifications + if self.finishfunc: + self.finishfunc(ret, self.cmd.core.rawoutput()) + self.finishfunc = None     @pyqtSlot()   def onPushAll(self): @@ -401,6 +403,8 @@
    @pyqtSlot()   def onQNewOrQRefresh(self): + def finished(ret, output): + self.newCheckBox.setChecked(False)   if self.newCheckBox.isChecked():   name = hglib.fromunicode(self.patchNameLE.text())   if not name: @@ -409,6 +413,7 @@
  self.patchNameLE.setFocus()   return   cmdline = ['qnew', '--repository', self.repo.root, name] + self.finishfunc = finished   else:   cmdline = ['qrefresh', '--repository', self.repo.root]   message = self.messageEditor.text()