Mercurial > hg-stable
changeset 10995:5efbfa662b3c
hgweb: always clear report_untrusted and interactive
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 26 Apr 2010 11:03:40 -0500 |
parents | c12a57c1a67e |
children | f6d41bfc189e |
files | mercurial/hgweb/hgweb_mod.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Mon Apr 26 11:03:40 2010 -0500 +++ b/mercurial/hgweb/hgweb_mod.py Mon Apr 26 11:03:40 2010 -0500 @@ -27,12 +27,12 @@ u = baseui.copy() else: u = ui.ui() - u.setconfig('ui', 'report_untrusted', 'off') - u.setconfig('ui', 'interactive', 'off') self.repo = hg.repository(u, repo) else: self.repo = repo + self.repo.ui.setconfig('ui', 'report_untrusted', 'off') + self.repo.ui.setconfig('ui', 'interactive', 'off') hook.redirect(True) self.mtime = -1 self.reponame = name