Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

revpanel: write label text 'Patch:' for patches

Changeset de47203d743b

Parent 5e0fe2141237

by Adrian Buehlmann

Changes to 3 files · Browse files at de47203d743b Showing diff from parent 5e0fe2141237 Diff from another changeset...

 
223
224
225
226
 
227
228
229
 
223
224
225
 
226
227
228
229
@@ -223,7 +223,7 @@
  raise UnknownItem(item)   if 'label' in custom and not kargs.get('usepreset', False):   try: - return custom['label'](widget, item) + return custom['label'](widget, item, ctx)   except UnknownItem:   pass   try:
 
569
570
571
572
 
573
574
575
 
569
570
571
 
572
573
574
575
@@ -569,7 +569,7 @@
  box.addWidget(self.reslabel)     # csinfo - def label_func(widget, item): + def label_func(widget, item, ctx):   if item == 'rev':   return _('Revision:')   elif item == 'parents':
 
15
16
17
18
 
19
 
 
20
21
22
 
15
16
17
 
18
19
20
21
22
23
24
@@ -15,8 +15,10 @@
   from PyQt4.QtCore import *   -def label_func(widget, item): +def label_func(widget, item, ctx):   if item == 'cset': + if type(ctx.rev()) is str: + return _('Patch:')   return _('Changeset:')   elif item == 'parents':   return _('Parent:')