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

changeset: enable use 'p4' component of csinfo

Changeset c4375a6a7b9f

Parent ff43b0d8cb49

by Steve Borho

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

 
516
517
518
 
 
 
 
 
 
 
 
 
519
520
521
 
545
546
547
548
 
549
550
551
 
601
602
603
604
 
605
606
607
 
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
 
554
555
556
 
557
558
559
560
 
610
611
612
 
613
614
615
616
@@ -516,6 +516,15 @@
  return revline_data(tctx)   except (error.LookupError, error.RepoLookupError, error.RepoError):   return ts + elif item == 'p4': + ts = widget.get_data('p4', usepreset=True) + if not ts: + return None + try: + tctx = self.repo[ts] + return revline_data(tctx) + except (error.LookupError, error.RepoLookupError, error.RepoError): + return ts   elif item == 'patch':   if hasattr(ctx, '_patchname'):   desc = ctx.description() @@ -545,7 +554,7 @@
  if branch:   return '%s - %s %s' % (revnum, branch, summary)   return '%s - %s' % (revnum, summary) - if item in ('cset', 'transplant', 'patch'): + if item in ('cset', 'transplant', 'patch', 'p4'):   if isinstance(value, basestring):   return revid_markup(value)   return revline_markup(*value) @@ -601,7 +610,7 @@
  markup=markup_func, widget=widget_func)   self.csetstyle = csinfo.panelstyle(contents=('cset', 'branch',   'user', 'dateage', 'parents', 'children', - 'tags', 'transplant'), selectable=True) + 'tags', 'transplant', 'p4'), selectable=True)   self.patchstyle = csinfo.panelstyle(contents=('patch', 'branch',   'user', 'dateage', 'parents'),   selectable=True)