changeset 46008:ecef004c6410

helptext: document share safe functionality in `hg help config -v` If share safe functionality is enabled, we read `.hg/hgrc' of shared source. Differential Revision: https://phab.mercurial-scm.org/D9413
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 27 Nov 2020 18:32:20 +0530
parents aa4440e59c44
children d767f71b9158
files mercurial/helptext/config.txt
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/helptext/config.txt	Fri Nov 27 18:28:14 2020 +0530
+++ b/mercurial/helptext/config.txt	Fri Nov 27 18:32:20 2020 +0530
@@ -147,6 +147,15 @@
 merge tool configuration but packagers can also put other default configuration
 there.
 
+.. container:: verbose
+
+    On versions 5.7 and later, if share-safe functionality is enabled,
+    shares will read config file of share source too.
+    `<share-source/.hg/hgrc>` is read before reading `<repo/.hg/hgrc>`.
+
+    For configs which should not be shared, `<repo/.hg/hgrc-not-shared>`
+    should be used.
+
 Syntax
 ======