diff hgext/blackbox.py @ 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 49b72b6f6d66
children 0b46440b1b45
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