comparison hgext3rd/topic/__init__.py @ 3764:f0f9139016d8 stable

topic: use preformatted block for config snippets documentation We add :: markers, empty line and properly indent blocks where needed.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Wed, 23 May 2018 11:00:11 +0200
parents 3b220226bbec
children 4aabc5c8b2af
comparison
equal deleted inserted replaced
3763:6f56ff701746 3764:f0f9139016d8
68 ===================== 68 =====================
69 69
70 The extensions come with an option to enforce that there is only one heads for 70 The extensions come with an option to enforce that there is only one heads for
71 each name in the repository at any time. 71 each name in the repository at any time.
72 72
73 ::
74
73 [experimental] 75 [experimental]
74 enforce-single-head = yes 76 enforce-single-head = yes
75 77
76 Publishing behavior 78 Publishing behavior
77 =================== 79 ===================
78 80
79 Topic vanish when changeset move to the public phases. Moving to the public 81 Topic vanish when changeset move to the public phases. Moving to the public
80 phase usually happens on push, but it is possible to update that behavior. The 82 phase usually happens on push, but it is possible to update that behavior. The
81 server needs to have specific config for this. 83 server needs to have specific config for this.
82 84
83 # everything pushed become public (the default) 85 # everything pushed become public (the default)::
84 [phase] 86
85 publish = yes 87 [phase]
86 88 publish = yes
87 # nothing push turned public 89
88 [phase] 90 # nothing push turned public::
89 publish = no 91
90 92 [phase]
91 # topic branches are not published, changeset without topic are 93 publish = no
92 [phase] 94
93 publish = no 95 # topic branches are not published, changeset without topic are::
94 [experimental] 96
95 topic.publish-bare-branch = yes 97 [phase]
98 publish = no
99 [experimental]
100 topic.publish-bare-branch = yes
96 101
97 In addition, the topic extension adds a ``--publish`` flag on :hg:`push`. When 102 In addition, the topic extension adds a ``--publish`` flag on :hg:`push`. When
98 used, the pushed revisions are published if the push succeeds. It also applies 103 used, the pushed revisions are published if the push succeeds. It also applies
99 to common revisions selected by the push. 104 to common revisions selected by the push.
100 """ 105 """