changeset 34517:49b72b6f6d66

configitems: register the 'blackbox.track' config
author Boris Feld <boris.feld@octobus.net>
date Sun, 08 Oct 2017 20:11:34 +0200
parents e79b3611223b
children 592a3cc1ebc4
files hgext/blackbox.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/blackbox.py	Sun Oct 08 04:39:42 2017 +0530
+++ b/hgext/blackbox.py	Sun Oct 08 20:11:34 2017 +0200
@@ -70,6 +70,9 @@
 configitem('blackbox', 'logsource',
     default=False,
 )
+configitem('blackbox', 'track',
+    default=['*'],
+)
 
 lastui = None
 
@@ -121,7 +124,7 @@
 
         @util.propertycache
         def track(self):
-            return self.configlist('blackbox', 'track', ['*'])
+            return self.configlist('blackbox', 'track')
 
         def log(self, event, *msg, **opts):
             global lastui