comparison hgext/share.py @ 46006:91425656e2b1

share: add documentation about share-safe mode in `hg help -e share` Differential Revision: https://phab.mercurial-scm.org/D9411
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 27 Nov 2020 18:11:47 +0530
parents 89a2afe31e82
children c80f9e3daec3
comparison
equal deleted inserted replaced
46005:2c0ddb79a8cd 46006:91425656e2b1
42 path or URL. In this mode, storage is only shared if the path or URL 42 path or URL. In this mode, storage is only shared if the path or URL
43 requested in the :hg:`clone` command matches exactly to a repository 43 requested in the :hg:`clone` command matches exactly to a repository
44 that was cloned before. 44 that was cloned before.
45 45
46 The default naming mode is "identity". 46 The default naming mode is "identity".
47
48 .. container:: verbose
49
50 Sharing requirements and configs of source repository with shares
51 -----------------------------------------------------------------
52
53 By default creating a shared repository only enables sharing a common
54 history and does not share requirements and configs between them. This
55 may lead to problems in some cases, for example when you upgrade the
56 storage format from one repository but does not set related configs
57 in the shares.
58
59 Setting `format.exp-share-safe = True` enables sharing configs and
60 requirements. This only applies to shares which are done after enabling
61 the config option.
62
63 For enabling this in existing shares, enable the config option and reshare.
64
65 For resharing existing shares, make sure your working directory is clean
66 and there are no untracked files, delete that share and create a new share.
47 ''' 67 '''
48 68
49 from __future__ import absolute_import 69 from __future__ import absolute_import
50 70
51 import errno 71 import errno