[PATCH] help: Explain trust near hgrc in config help

timeless timeless at gmail.com
Wed Jun 16 10:39:25 UTC 2010


This has been sitting in my repository for a while. If someone wants
to bikeshed this, that's fine.

# HG changeset patch
# User timeless <timeless at gmail.com>
# Date 1274435515 -10800
# Node ID eab6f3e6d4d90cd0c6b5fe2819750e90dbc4734e
# Parent  663351c0604fb9fff6b71aa03abd63cf8b91198b
Explain trust near hgrc in config help

diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -22,6 +22,18 @@ On Unix, these files are read:
 - ``<install-root>/etc/mercurial/hgrc``
 - ``<install-root>/etc/mercurial/hgrc.d/*.rc``

+If the hg repository is not owned by the active user, hg will
complain about the
+hgrc file:
+
+  not trusting file HGPATH/.hg/hgrc from untrusted user USER, group GROUP
+
+This warning can be silenced (the hgrc would still be ignored) or trust can be
+established by using the trusted section:
+
+- ui.report_untrusted=false
+- trusted.users=USER
+- trusted.groups=GROUP
+
 The configuration files for Mercurial use a simple ini-file format. A
 configuration file consists of sections, led by a ``[section]`` header
 and followed by ``name = value`` entries::



More information about the Mercurial-devel mailing list