Mercurial > hg
diff mercurial/hgweb/hgweb_mod.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 | aa983c3d94a9 |
children | 35604226d712 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Thu Apr 23 15:40:10 2009 -0500 +++ b/mercurial/hgweb/hgweb_mod.py Thu Apr 23 15:40:10 2009 -0500 @@ -25,7 +25,9 @@ class hgweb(object): def __init__(self, repo, name=None): if isinstance(repo, str): - parentui = ui.ui(report_untrusted=False, interactive=False) + parentui = ui.ui() + parentui.setconfig('ui', 'report_untrusted', 'off') + parentui.setconfig('ui', 'interactive', 'off') self.repo = hg.repository(parentui, repo) else: self.repo = repo