diff -r 573baab2a797 -r 0d757af1ea67 mercurial/configitems.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/configitems.py Sat Jun 17 18:41:55 2017 +0200 @@ -0,0 +1,21 @@ +# configitems.py - centralized declaration of configuration option +# +# Copyright 2017 Pierre-Yves David +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2 or any later version. + +from __future__ import absolute_import + +class configitem(object): + """represent a known config item + + :section: the official config section where to find this item, + :name: the official name within the section, + :default: default value for this item, + """ + + def __init__(self, section, name, default=None): + self.section = section + self.name = name + self.default = default