diff tests/test-trusted.py.out @ 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 543597fae51d
children fa91ddfc3f36
line wrap: on
line diff
--- a/tests/test-trusted.py.out	Thu Feb 24 13:57:52 2011 -0300
+++ b/tests/test-trusted.py.out	Fri Feb 25 23:26:24 2011 -0600
@@ -136,6 +136,25 @@
 .ignoring untrusted configuration option paths.local = /another/path
 . local = /another/path
 
+# report_untrusted enabled without debug hides warnings
+# different user, different group
+trusted
+    global = /some/path
+untrusted
+. . global = /some/path
+. . local = /another/path
+
+# report_untrusted enabled with debug shows warnings
+# different user, different group
+Not trusting file .hg/hgrc from untrusted user abc, group def
+trusted
+ignoring untrusted configuration option paths.local = /another/path
+    global = /some/path
+untrusted
+. . global = /some/path
+.ignoring untrusted configuration option paths.local = /another/path
+. local = /another/path
+
 # ui.readconfig sections
 quux