Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

backout: backout command fixes

Changeset 36b352976fb2

Parent 1a53bd86527b

by Steve Borho

Changes to one file · Browse files at 36b352976fb2 Showing diff from parent 1a53bd86527b Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​backout.py Stacked
 
107
108
109
110
 
111
112
113
114
 
115
116
117
118
119
120
121
 
 
 
 
 
107
108
109
 
110
111
112
 
 
113
114
115
116
117
118
 
 
119
120
121
122
@@ -107,15 +107,16 @@
  self.notify_func = func   self.notify_args = args   - def backout(self, button, buf, rev): + def backout(self, button, buf, revstr):   start, end = buf.get_bounds()   msg = buf.get_text(start, end) - cmdline = ['hg', 'backout', '--rev', self.reventry.get_text(), - '--message', msg] + cmdline = ['hg', 'backout', '--rev', revstr, '--message', msg]   from hgcmd import CmdDialog   dlg = CmdDialog(cmdline)   dlg.show_all()   dlg.run()   dlg.hide() - if self.notify_func: - self.notify_func(self.notify_args) + if dlg.returncode == 0: + if self.notify_func: + self.notify_func(self.notify_args) + self.destroy()