# HG changeset patch # User Boris Feld # Date 2017-10-13 21:33:31 # Node ID 2b954c9c5395bc2baf0c6842e31eb124f0f609f1 # Parent 6338e23c887dad126de8a7934b8e8bec41a00f3c configitems: fix registration of extensions config The new 'itemregister' class should be used when loading the extension config. This was and oversight when itemregister was introduced. diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -18,7 +18,7 @@ from . import ( def loadconfigtable(ui, extname, configtable): """update config item known to the ui with the extension ones""" for section, items in configtable.items(): - knownitems = ui._knownconfig.setdefault(section, {}) + knownitems = ui._knownconfig.setdefault(section, itemregister()) knownkeys = set(knownitems) newkeys = set(items) for key in sorted(knownkeys & newkeys):