Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

commit: fix regression of 'not at head' feature

Changeset b732d4e364d1

Parent fa1c2e91b67f

by Yuki KODAMA

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

 
396
397
398
399
400
 
 
401
402
403
404
 
405
406
407
408
409
 
 
410
411
412
 
396
397
398
 
 
399
400
401
402
403
 
404
405
406
407
 
 
408
409
410
411
412
@@ -396,17 +396,17 @@
  # parent changeset info   parents_vbox = gtk.VBox(spacing=1)   self.parents_frame = parents_vbox - style = csinfo.labelstyle(contents=(_('Parent: %(rev)s'), - ' %(athead)s', ' %(branch)s', ' %(tags)s', + style = csinfo.labelstyle(contents=('%(athead)s ', + _('Parent: %(rev)s'), ' %(branch)s', ' %(tags)s',   ' %(summary)s'), selectable=True)   def data_func(widget, item, ctx):   if item == 'athead': - return widget.get_data('ishead') or self.mqmode + return widget.get_data('ishead') or bool(self.mqmode)   raise csinfo.UnknownItem(item)   def markup_func(widget, item, value):   if item == 'athead' and value is False: - text = '[%s]' % _('not at head revision') - return gtklib.markup(text, weight='bold') + text = '[%s]' % _('Not at head') + return gtklib.markup(text, weight='bold', color='#880000')   raise csinfo.UnknownItem(item)   custom = csinfo.custom(data=data_func, markup=markup_func)   factory = csinfo.factory(self.repo, custom, style)