Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ui-verbosity @ 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 |
line wrap: on
line diff
--- a/tests/test-ui-verbosity Thu Apr 23 15:40:10 2009 -0500 +++ b/tests/test-ui-verbosity Thu Apr 23 15:40:10 2009 -0500 @@ -31,7 +31,10 @@ f.close() u = ui.ui() - u.updateopts(quiet=cmd_quiet, verbose=cmd_verbose, debug=cmd_debug) + if cmd_quiet or cmd_debug or cmd_verbose: + u.setconfig('ui', 'quiet', str(bool(cmd_quiet))) + u.setconfig('ui', 'verbose', str(bool(cmd_verbose))) + u.setconfig('ui', 'debug', str(bool(cmd_debug))) check = '' if u.debugflag: