author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
Wed, 13 Jan 2010 11:53:55 +0100 | |
branch | stable |
changeset 10243 | cd3e5c47d663 |
parent 10242 | ecd0a5c8bbe5 |
child 10244 | c4c0502be198 |
child 10249 | 8ebb34b0f6f7 |
mercurial/ui.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/ui.py Wed Jan 13 11:57:32 2010 +0100 +++ b/mercurial/ui.py Wed Jan 13 11:53:55 2010 +0100 @@ -131,6 +131,8 @@ v = self.config(section, name, None, untrusted) if v is None: return default + if isinstance(v, bool): + return v if v.lower() not in _booleans: raise error.ConfigError(_("%s.%s not a boolean ('%s')") % (section, name, v))