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

commit: refresh calling tool after a commit

use this hook to refresh the changelog after a merge commit

Changeset 8ec656a1114a

Parent 5b1741b0c4c6

by Steve Borho

Changes to 2 files · Browse files at 8ec656a1114a Showing diff from parent 5b1741b0c4c6 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
93
94
95
 
 
 
 
 
96
97
98
 
651
652
653
 
 
654
655
656
 
93
94
95
96
97
98
99
100
101
102
103
 
656
657
658
659
660
661
662
663
@@ -93,6 +93,11 @@
  self.closebranch = False   self._last_commit_id = None   self.qnew = False + self.notify_func = None + + def set_notify_func(self, func, args): + self.notify_func = func + self.notify_args = args     def parse_opts(self):   GStatus.parse_opts(self) @@ -651,6 +656,8 @@
  # refresh overlay icons and commit dialog   if dialog.return_code() == 0:   shell_notify([self.cwd] + files) + if self.notify_func: + self.notify_func(self.notify_args)   self.closebranch = False   self.nextbranch = None   buf = self.text.get_buffer()
Change 1 of 1 Show Entire File hggtk/​merge.py Stacked
 
139
140
141
 
142
143
144
 
139
140
141
142
143
144
145
@@ -139,6 +139,7 @@
  import commit   dlg = commit.run(ui.ui())   dlg.set_modal(True) + dlg.set_notify_func(self.notify_func, self.notify_args)   dlg.display()     def undo(self, button, local, merge, commit):