Mercurial > hg-stable
changeset 33071:1dc2ffe0123b
config: use '_config' within 'configbool'
This will prevent bugs from using None as the sentinel value (eg:
'ui.interactive')
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 25 Jun 2017 14:38:56 +0200 |
parents | 1aa05203f7f6 |
children | e70cbae4c4e6 |
files | mercurial/ui.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Jun 25 14:34:34 2017 +0200 +++ b/mercurial/ui.py Sun Jun 25 14:38:56 2017 +0200 @@ -540,8 +540,10 @@ ConfigError: foo.invalid is not a boolean ('somevalue') """ - v = self.config(section, name, default, untrusted=untrusted) + v = self._config(section, name, default, untrusted=untrusted) if v is None: + return v + if v is _unset: if default is _unset: return False return default