Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.5, 0.6, and 0.7

commit: only do cleanup when commit is successful

Changeset 74e38d33dd70

Parent b418259be7f7

by TK Soh

Changes to one file · Browse files at 74e38d33dd70 Showing diff from parent b418259be7f7 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​commit.py Stacked
 
332
333
334
335
336
337
338
339
 
 
 
 
 
 
340
341
342
 
332
333
334
 
 
 
 
 
335
336
337
338
339
340
341
342
343
@@ -332,11 +332,12 @@
  dialog.hide()     # refresh overlay icons and commit dialog - self.text.set_buffer(gtk.TextBuffer()) - self._update_recent_messages(self.opts['message']) - shell_notify([self.cwd] + files) - self._last_commit_id = self._get_tip_rev(True) - self.reload_status() + if dialog.return_code() == 0: + self.text.set_buffer(gtk.TextBuffer()) + self._update_recent_messages(self.opts['message']) + shell_notify([self.cwd] + files) + self._last_commit_id = self._get_tip_rev(True) + self.reload_status()     def _get_tip_rev(self, refresh=False):   if refresh: