configitems: fix registration for 'blackbox.track' config
authorBoris Feld <boris.feld@octobus.net>
Wed, 11 Oct 2017 15:25:57 +0200
changeset 34583 19b2c062654c
parent 34582 6ce2d81968aa
child 34584 bf2389b1f15e
configitems: fix registration for 'blackbox.track' config Default mutable values could be problematic. Use a lambda that returns the value instead. Thanks to martin for catching this bug.
hgext/blackbox.py
--- a/hgext/blackbox.py	Tue Oct 10 10:27:35 2017 -0500
+++ b/hgext/blackbox.py	Wed Oct 11 15:25:57 2017 +0200
@@ -71,7 +71,7 @@
     default=False,
 )
 configitem('blackbox', 'track',
-    default=['*'],
+    default=lambda: ['*'],
 )
 
 lastui = None