Mercurial > hg > mercurial-source
diff mercurial/configitems.py @ 35551: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 (2017-10-13) |
parents | cd7bf9ad0e69 |
children | 43c78d2819d8 |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -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):