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 "{+|-}1 head" on commit button label

Changes the label of the commit menu button to note if the number of heads will
increase or decrease ("Commit (+1 head)" or "Commit (-1 head)").

Changeset 3aee3e4528be

Parent f25e014e13fe

by Adrian Buehlmann

Changes to one file · Browse files at 3aee3e4528be Showing diff from parent f25e014e13fe Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​commit.py Stacked
 
350
351
352
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
354
355
 
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
@@ -350,6 +350,28 @@
  self.parent2_label.show()   self.parents_frame.set_label(_('Parents'))   + if self.mqmode: + return + + # add "{+|-}1 head" to label of commit button + b = self.commit_button + ph = _('_Commit (+1 head)') + mh = _('_Commit (-1 head)') + if not merge: + if not ishead0: + b.set_label(ph) + b.set_tooltip(self.tooltips, + _('parent is not a head, commit to add a new head')) + else: + if ishead0 and ishead1: + b.set_label(mh) + b.set_tooltip(self.tooltips, + _('commit to merge one head')) + elif not ishead0 and not ishead1: + b.set_label(ph) + b.set_tooltip(self.tooltips, + _('no parent is a head, commit to add a new head')) +   def realize_settings(self):   self.vpaned.set_position(self._setting_vpos)