helptext: document share safe functionality in `hg help config -v`
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 27 Nov 2020 18:32:20 +0530
changeset 46008 ecef004c6410
parent 46007 aa4440e59c44
child 46009 d767f71b9158
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
mercurial/helptext/config.txt
--- 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
 ======