Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 34858:85a2db47ad50
configitems: adds a developer warning when accessing undeclared configuration
Now that all known options are declared, we setup a warning to make sure it will
stay this way.
We disable the warning in two tests checking other behavior with random options.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 16 Oct 2017 17:41:27 +0200 |
parents | f05a6e015ecc |
children | b1e3f609bf45 |
line wrap: on
line diff
--- a/mercurial/configitems.py Tue Oct 17 21:15:31 2017 +0200 +++ b/mercurial/configitems.py Mon Oct 16 17:41:27 2017 +0200 @@ -249,6 +249,9 @@ coreconfigitem('devel', 'user.obsmarker', default=None, ) +coreconfigitem('devel', 'warn-config-unknown', + default=None, +) coreconfigitem('diff', 'nodates', default=False, )