Patchwork [4,of,6,RFC] hgweb: allow specifying report_untrusted as reportuntrusted

login
register
mail settings
Submitter Augie Fackler
Date Aug. 2, 2013, 2:15 p.m.
Message ID <57d621716b4193c121cc.1375452903@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/1985/
State Deferred
Headers show

Comments

Augie Fackler - Aug. 2, 2013, 2:15 p.m.
# HG changeset patch
# User Augie Fackler <durin42@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

Patch

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)):