D9411: share: add documentation about share-safe mode in `hg help -e share`
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Nov 27 15:41:54 UTC 2020
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D9411
AFFECTED FILES
hgext/share.py
CHANGE DETAILS
diff --git a/hgext/share.py b/hgext/share.py
--- a/hgext/share.py
+++ b/hgext/share.py
@@ -44,6 +44,25 @@
that was cloned before.
The default naming mode is "identity".
+
+.. container:: verbose
+
+ Sharing requirements and configs of source repository with shares
+ -----------------------------------------------------------------
+
+ By default creating a shared repository only enables sharing a common
+ history and does not share requirements and configs between them. This
+ may lead to problems in some cases, for example when you upgrade the
+ storage format from one repository but does not set related configs
+ in the shares.
+
+ Setting `format.exp-share-safe = True` enables sharing configs and
+ requirements. This only applies to shares which are done after enabling
+ the config option.
+ For enabling this in existing shares, enable the config option and reshare.
+
+ For resharing existing shares, make sure your working directory is clean
+ and there are no untracked files, delete that share and create a new share.
'''
from __future__ import absolute_import
To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list