configitems: register the 'blackbox.track' config
authorBoris Feld <boris.feld@octobus.net>
Sun, 08 Oct 2017 20:11:34 +0200
changeset 34517 49b72b6f6d66
parent 34516 e79b3611223b
child 34518 592a3cc1ebc4
configitems: register the 'blackbox.track' config
hgext/blackbox.py
--- 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