changeset 34583:19b2c062654c

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.
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 15:25:57 +0200
parents 6ce2d81968aa
children bf2389b1f15e
files hgext/blackbox.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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