configitems: fix registration of extensions config
authorBoris Feld <boris.feld@octobus.net>
Fri, 13 Oct 2017 23:33:31 +0200
changeset 34768 2b954c9c5395
parent 34767 6338e23c887d
child 34769 43c78d2819d8
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.
mercurial/configitems.py
--- 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):