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

stable changeset: show 'date' with 'age'

Changeset 53253128b3e7

Parent 745e32dfd6e2

by Yuki KODAMA

Changes to one file · Browse files at 53253128b3e7 Showing diff from parent 745e32dfd6e2 Diff from another changeset...

 
456
457
458
459
460
461
 
 
 
462
463
464
 
469
470
471
 
 
 
 
472
473
474
 
488
489
490
 
 
491
492
493
 
507
508
509
 
 
510
511
512
 
456
457
458
 
 
 
459
460
461
462
463
464
 
469
470
471
472
473
474
475
476
477
478
 
492
493
494
495
496
497
498
499
 
513
514
515
516
517
518
519
520
@@ -456,9 +456,9 @@
  scroller.child.set_shadow_type(gtk.SHADOW_NONE)     ## changeset panel - style = csinfo.panelstyle(contents=('cset', 'branch', 'user', 'date', - 'parents', 'children', 'tags', 'transplant'), - selectable=True) + style = csinfo.panelstyle(contents=('cset', 'branch', 'user', + 'dateage', 'parents', 'children', 'tags', + 'transplant'), selectable=True)   def data_func(widget, item, ctx):   def revline_data(ctx):   desc = ctx.description().replace('\0', '') @@ -469,6 +469,10 @@
  elif item == 'branch':   value = hglib.toutf(ctx.branch())   return value != 'default' and value or None + if item == 'dateage': + date = widget.get_data('date') + age = widget.get_data('age') + return (date, age)   elif item == 'parents':   return [revline_data(ctx) for ctx in ctx.parents()]   elif item == 'children': @@ -488,6 +492,8 @@
  def label_func(widget, item):   if item == 'cset':   return _('changeset:') + elif item == 'dateage': + return _('date:')   elif item == 'parents':   return _('parent:')   elif item == 'children': @@ -507,6 +513,8 @@
  return revline_markup(*value)   elif item in ('parents', 'children'):   return [revline_markup(*data) for data in value] + elif item == 'dateage': + return gtklib.markup('%s (%s)' % value)   raise csinfo.UnknownItem(item)   custom = csinfo.custom(data=data_func, label=label_func,   markup=markup_func)