Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

commit: add "Changelog" button to toolbar

The button is added on the right.

Not a big deal, but a convenient shortcut.

I often feel the need to look something up in the changelog when
typing the change message. This saves me a couple of clicks and
some window navigation.

Changeset e2be416e99bc

Parent eee4b5167d25

by Adrian Buehlmann

Changes to one file · Browse files at e2be416e99bc Showing diff from parent eee4b5167d25 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​commit.py Stacked
 
188
189
190
 
 
 
 
 
 
191
192
193
 
558
559
560
 
 
 
 
 
 
 
561
562
563
 
188
189
190
191
192
193
194
195
196
197
198
199
 
564
565
566
567
568
569
570
571
572
573
574
575
576
@@ -188,6 +188,12 @@
  self.commit_clicked, tip=_('commit'))   tbbuttons.insert(0, self.undo_button)   tbbuttons.insert(0, self.commit_button) + + self.changelog_button = self.make_toolbutton(gtk.STOCK_INDEX, _('Changelog'), + self.changelog_clicked, tip=_('view changelog')) + tbbuttons.append(self.changelog_button) + tbbuttons.append(gtk.SeparatorToolItem()) +   return tbbuttons     @@ -558,6 +564,13 @@
  _('Errors during rollback!'), self).run()     + def changelog_clicked(self, toolbutton, data=None): + from hggtk import history + dlg = history.run(self.ui) + dlg.display() + return True + +   def should_addremove(self, files):   if self.test_opt('addremove'):   return True