comparison tests/test-help.t @ 48242:4d2ab365699e

bookmarks: move the `mirror` option to the `paths` section A new `bookmarks` section with a `mirror` option have been added. That option has never been released yet. This new options is limited since it affect all paths without distinction. In case where a repository is interacting with multiple peers, being able to control behavior on a path basis can be quite valuable. In addition, having more variant of behavior would be interesting, especially a mode where no bookmark exchanged is tried at all. Such new mode (implemented later) make a lot of sense for configuration on a path-basis. Configuration of the default behavior is still possible through the usage of generic path configuration. The "old" config, becomes: [bookmarks] mirror=True becomes: [path] *:bookmarks.mode=mirror Differential Revision: https://phab.mercurial-scm.org/D11675
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Oct 2021 03:49:05 +0200
parents e8a576de703f
children b56858d85a7b
comparison
equal deleted inserted replaced
48241:7d1e60244561 48242:4d2ab365699e
1898 by default. 1898 by default.
1899 1899
1900 Revsets specifying bookmarks will not result in the bookmark being 1900 Revsets specifying bookmarks will not result in the bookmark being
1901 pushed. 1901 pushed.
1902 1902
1903 "bookmarks.mode"
1904 How bookmark will be dealt during the exchange. It support the following
1905 value
1906
1907 - "default": the default behavior, local and remote bookmarks are
1908 "merged" on push/pull.
1909 - "mirror": when pulling, replace local bookmarks by remote bookmarks.
1910 This is useful to replicate a repository, or as an optimization.
1911
1903 The following special named paths exist: 1912 The following special named paths exist:
1904 1913
1905 "default" 1914 "default"
1906 The URL or directory to use when no source or remote is specified. 1915 The URL or directory to use when no source or remote is specified.
1907 1916