[PATCH 4 of 6 RFC] hgweb: allow specifying report_untrusted as reportuntrusted
Augie Fackler
raf at durin42.com
Fri Aug 2 09:15:03 CDT 2013
# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1374709380 14400
# Wed Jul 24 19:43:00 2013 -0400
# Node ID 57d621716b4193c121ccd5d2eb3c1469b201514b
# Parent b4f222eb288785c43e3dbd10b7a115b105ad0b79
hgweb: allow specifying report_untrusted as reportuntrusted
diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -64,8 +64,8 @@
self.repo = repo
self.repo = self._getview(self.repo)
- self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
- self.repo.baseui.setconfig('ui', 'report_untrusted', 'off')
+ self.repo.ui.setconfig('ui', 'reportuntrusted', 'off')
+ self.repo.baseui.setconfig('ui', 'reportuntrusted', 'off')
self.repo.ui.setconfig('ui', 'nontty', 'true')
self.repo.baseui.setconfig('ui', 'nontty', 'true')
hook.redirect(True)
diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py
+++ b/mercurial/hgweb/hgwebdir_mod.py
@@ -96,7 +96,7 @@
u = self.baseui.copy()
else:
u = ui.ui()
- u.setconfig('ui', 'report_untrusted', 'off')
+ u.setconfig('ui', 'reportuntrusted', 'off')
u.setconfig('ui', 'nontty', 'true')
if not isinstance(self.conf, (dict, list, tuple)):
More information about the Mercurial-devel
mailing list