# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:28:18 # Node ID 0ef40bb202643a4f50eef725a8aaa4b434e5f6d2 # Parent 1df74b71396dac830952c0abc31047618203a01f configitems: register the 'blackbox.logsource' config diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -67,6 +67,9 @@ configitem('blackbox', 'dirty', configitem('blackbox', 'maxsize', default='1 MB', ) +configitem('blackbox', 'logsource', + default=False, +) lastui = None @@ -199,7 +202,7 @@ def wrapui(ui): 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 = ''