# HG changeset patch # User Boris Feld # Date 2017-10-11 13:25:57 # Node ID 19b2c062654c10d51e34a515971059813d68d0f7 # Parent 6ce2d81968aa4869e5ced07b5017d1e8547aaf3a 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. diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -71,7 +71,7 @@ configitem('blackbox', 'logsource', default=False, ) configitem('blackbox', 'track', - default=['*'], + default=lambda: ['*'], ) lastui = None