Mercurial > public > mercurial-scm > hg
diff tests/test-ui-config @ 4729:9881abfc0e44
Catch illegal boolean values in hgrc nicely.
With hg 0.9.3 the section and parameter name wasn't printed,
with hg 0.9.4 there was a traceback for ValueError.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 26 Jun 2007 20:37:15 +0200 |
parents | 0c61124ad877 |
children | 18a9fbb5cd78 |
line wrap: on
line diff
--- a/tests/test-ui-config Tue Jun 26 18:39:28 2007 +0200 +++ b/tests/test-ui-config Tue Jun 26 20:37:15 2007 +0200 @@ -34,8 +34,8 @@ print "---" try: print repr(testui.configbool('values', 'string')) -except ValueError, why: - print why +except util.Abort, inst: + print inst print repr(testui.configbool('values', 'bool1')) print repr(testui.configbool('values', 'bool2')) print repr(testui.configbool('values', 'bool2', True))