Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable revpanel: show branch close

Changeset 98dbb317b280

Parent 50b332953c2c

by Adrian Buehlmann

Changes to 2 files · Browse files at 98dbb317b280 Showing diff from parent 50b332953c2c Diff from another changeset...

 
18
19
20
21
22
 
 
23
24
25
 
106
107
108
 
109
110
111
 
168
169
170
 
 
171
172
173
 
243
244
245
246
 
247
248
249
 
18
19
20
 
 
21
22
23
24
25
 
106
107
108
109
110
111
112
 
169
170
171
172
173
174
175
176
 
246
247
248
 
249
250
251
252
@@ -18,8 +18,8 @@
 from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import qtlib, thgrepo   -PANEL_DEFAULT = ('rev', 'summary', 'user', 'dateage', 'branch', 'tags', - 'transplant', 'p4', 'svn') +PANEL_DEFAULT = ('rev', 'summary', 'user', 'dateage', 'branch', 'close', + 'tags', 'transplant', 'p4', 'svn')    def create(repo, target=None, style=None, custom=None, **kargs):   return Factory(repo, custom, style, target, **kargs)() @@ -106,6 +106,7 @@
  'revid': _('Revision:'), 'summary': _('Summary:'),   'user': _('User:'), 'date': _('Date:'),'age': _('Age:'),   'dateage': _('Date:'), 'branch': _('Branch:'), + 'close': _('Close:'),   'tags': _('Tags:'), 'rawbranch': _('Branch:'),   'rawtags': _('Tags:'), 'transplant': _('Transplant:'),   'p4': _('Perforce:'), 'svn': _('Subversion:'), @@ -168,6 +169,8 @@
  return None   return value   return None + elif item == 'close': + return ctx.extra().get('close')   elif item == 'rawtags':   return hglib.getrawctxtags(ctx)   elif item == 'tags': @@ -243,7 +246,7 @@
  return '%s' % revid   elif item in ('revid', 'transplant'):   return qtlib.markup(value, **mono) - elif item in ('revnum', 'p4', 'svn'): + elif item in ('revnum', 'p4', 'svn', 'close'):   return str(value)   elif item in ('rawbranch', 'branch'):   opts = dict(fg='black', bg='#aaffaa')
 
131
132
133
134
 
135
136
137
 
131
132
133
 
134
135
136
137
@@ -131,7 +131,7 @@
  '''creates a rev panel widget and returns it'''   custom = csinfo.custom(data=data_func, label=label_func,   markup=markup_func) - style = csinfo.panelstyle(contents=('cset', 'branch', 'user', + style = csinfo.panelstyle(contents=('cset', 'branch', 'close', 'user',   'dateage', 'parents', 'children', 'tags', 'transplant',   'p4', 'svn'), selectable=True, expandable=True)   return csinfo.create(repo, style=style, custom=custom)