Patchwork D9413: helptext: document share safe functionality in `hg help config -v`

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2020, 3:42 p.m.
Message ID <differential-rev-PHID-DREV-x3btrqbe4n75doypn7tl-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47692/
State Superseded
Headers show

Comments

phabricator - Nov. 27, 2020, 3:42 p.m.
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  If share safe functionality is enabled, we read `.hg/hgrc' of shared source.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9413

AFFECTED FILES
  mercurial/helptext/config.txt

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/helptext/config.txt b/mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt
+++ b/mercurial/helptext/config.txt
@@ -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
 ======