[PATCH] ui: always report untrusted hgrc files when debug enabled

Ry4an Brase ry4an-hg at ry4an.org
Thu Feb 24 22:38:34 CST 2011


# HG changeset patch
# User Ry4an Brase <ry4an-hg at ry4an.org>
# Date 1298608672 21600
# Node ID 5e196621a18ee5934bffea18a207bbe22b74a829
# Parent  643b8212813e631b5525049fc4321a34a4def105
ui: always report untrusted hgrc files when debug enabled

It was suggested in IRC that people disabling the reporting of unstructed hgrc
files can masquerade as problems.  This makes sure untrusted hgrc files are
always reported if --debug is used.

diff -r 643b8212813e -r 5e196621a18e mercurial/ui.py
--- a/mercurial/ui.py	Wed Feb 16 15:02:30 2011 +0100
+++ b/mercurial/ui.py	Thu Feb 24 22:37:52 2011 -0600
@@ -122,8 +122,8 @@
             self.quiet = not self.debugflag and self.configbool('ui', 'quiet')
             if self.verbose and self.quiet:
                 self.quiet = self.verbose = False
-            self._reportuntrusted = self.configbool("ui", "report_untrusted",
-                                        True)
+            self._reportuntrusted = not self.debugflag and self.configbool("ui",
+                "report_untrusted", True)
             self.tracebackflag = self.configbool('ui', 'traceback', False)
 
         if section in (None, 'trusted'):


More information about the Mercurial-devel mailing list