Mercurial > public > mercurial-scm > hg
diff mercurial/ui.py @ 13493:95b0d4c1c9e1 stable
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.
author | Ry4an Brase <ry4an-hg@ry4an.org> |
---|---|
date | Fri, 25 Feb 2011 23:26:24 -0600 |
parents | 1b591f9b7fd2 |
children | edd06611a7c6 |
line wrap: on
line diff
--- a/mercurial/ui.py Thu Feb 24 13:57:52 2011 -0300 +++ b/mercurial/ui.py Fri Feb 25 23:26:24 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 = self.debugflag or self.configbool("ui", + "report_untrusted", True) self.tracebackflag = self.configbool('ui', 'traceback', False) if section in (None, 'trusted'):