Mercurial > hg-stable
changeset 33192:0ef40bb20264
configitems: register the 'blackbox.logsource' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:28:18 +0200 |
parents | 1df74b71396d |
children | 8065b4ab0ed7 |
files | hgext/blackbox.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = ''