changeset 34768:2b954c9c5395

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.
author Boris Feld <boris.feld@octobus.net>
date Fri, 13 Oct 2017 23:33:31 +0200
parents 6338e23c887d
children 43c78d2819d8
files mercurial/configitems.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.py	Wed Oct 11 23:33:59 2017 +0200
+++ b/mercurial/configitems.py	Fri Oct 13 23:33:31 2017 +0200
@@ -18,7 +18,7 @@
 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):