Mercurial > public > mercurial-scm > hg-stable
diff tests/test-trusted.py @ 8136:6b5522cb2ad2
ui: refactor option setting
No more passing options as constructor keywords. Basic options are now
always stored in the overlay for simplicity and consistency.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 23 Apr 2009 15:40:10 -0500 |
parents | 5db730475d6d |
children | 912bfef12ba6 |
line wrap: on
line diff
--- a/tests/test-trusted.py Thu Apr 23 15:40:10 2009 -0500 +++ b/tests/test-trusted.py Thu Apr 23 15:40:10 2009 -0500 @@ -60,7 +60,7 @@ trusted) parentui = ui.ui() - parentui.updateopts(debug=debug) + parentui.setconfig('ui', 'debug', str(bool(debug))) u = ui.ui(parentui=parentui) u.readconfig('.hg/hgrc') if silent: @@ -145,7 +145,7 @@ print print "# read trusted, untrusted, new ui, trusted" u = ui.ui() -u.updateopts(debug=True) +u.setconfig('ui', 'debug', 'on') u.readconfig(filename) u2 = ui.ui(parentui=u) def username(uid=None):