Mercurial > hg
comparison mercurial/ui.py @ 32984:6d983e8af49c
configitems: introduce a central registry for config option
We now have the appropriate infrastructure to register config items. Usage will
added in the next changeset.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 17 Jun 2017 18:43:27 +0200 |
parents | cd2fd1765654 |
children | 28a65fd4b359 |
comparison
equal
deleted
inserted
replaced
32983:0d757af1ea67 | 32984:6d983e8af49c |
---|---|
25 from .node import hex | 25 from .node import hex |
26 | 26 |
27 from . import ( | 27 from . import ( |
28 color, | 28 color, |
29 config, | 29 config, |
30 configitems, | |
30 encoding, | 31 encoding, |
31 error, | 32 error, |
32 formatter, | 33 formatter, |
33 progress, | 34 progress, |
34 pycompat, | 35 pycompat, |
176 # When a buffer is active, defines whether we are expanding labels. | 177 # When a buffer is active, defines whether we are expanding labels. |
177 # This exists to prevent an extra list lookup. | 178 # This exists to prevent an extra list lookup. |
178 self._bufferapplylabels = None | 179 self._bufferapplylabels = None |
179 self.quiet = self.verbose = self.debugflag = self.tracebackflag = False | 180 self.quiet = self.verbose = self.debugflag = self.tracebackflag = False |
180 self._reportuntrusted = True | 181 self._reportuntrusted = True |
182 self._knownconfig = configitems.coreitems | |
181 self._ocfg = config.config() # overlay | 183 self._ocfg = config.config() # overlay |
182 self._tcfg = config.config() # trusted | 184 self._tcfg = config.config() # trusted |
183 self._ucfg = config.config() # untrusted | 185 self._ucfg = config.config() # untrusted |
184 self._trustusers = set() | 186 self._trustusers = set() |
185 self._trustgroups = set() | 187 self._trustgroups = set() |