##// END OF EJS Templates
configitems: register the 'blackbox.logsource' config
marmoute -
r33187:0ef40bb2 default
parent child Browse files
Show More
@@ -67,6 +67,9 configitem('blackbox', 'dirty',
67 configitem('blackbox', 'maxsize',
67 configitem('blackbox', 'maxsize',
68 default='1 MB',
68 default='1 MB',
69 )
69 )
70 configitem('blackbox', 'logsource',
71 default=False,
72 )
70
73
71 lastui = None
74 lastui = None
72
75
@@ -199,7 +202,7 def wrapui(ui):
199 any(ctx.sub(s).dirty() for s in ctx.substate)
202 any(ctx.sub(s).dirty() for s in ctx.substate)
200 )):
203 )):
201 changed = '+'
204 changed = '+'
202 if ui.configbool('blackbox', 'logsource', False):
205 if ui.configbool('blackbox', 'logsource'):
203 src = ' [%s]' % event
206 src = ' [%s]' % event
204 else:
207 else:
205 src = ''
208 src = ''
General Comments 0
You need to be logged in to leave comments. Login now