configitems: register the 'blackbox.logsource' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:28:18 +0200
changeset 33192 0ef40bb20264
parent 33191 1df74b71396d
child 33193 8065b4ab0ed7
configitems: register the 'blackbox.logsource' config
hgext/blackbox.py
--- a/hgext/blackbox.py	Fri Jun 30 03:28:11 2017 +0200
+++ b/hgext/blackbox.py	Fri Jun 30 03:28:18 2017 +0200
@@ -67,6 +67,9 @@
 configitem('blackbox', 'maxsize',
     default='1 MB',
 )
+configitem('blackbox', 'logsource',
+    default=False,
+)
 
 lastui = None
 
@@ -199,7 +202,7 @@
                         any(ctx.sub(s).dirty() for s in ctx.substate)
                     )):
                         changed = '+'
-                if ui.configbool('blackbox', 'logsource', False):
+                if ui.configbool('blackbox', 'logsource'):
                     src = ' [%s]' % event
                 else:
                     src = ''