Mercurial > hg
comparison tests/test-convert.t @ 17267:979b107eaea2 stable
doc: unify section level between help topics
Some help topics use "-" for the top level underlining section mark,
but "-" is used also for the top level categorization in generated
documents: "hg.1.html", for example.
So, TOC in such documents contain "sections in each topics", too.
This patch changes underlining section mark in some help topics to
unify section level in generated documents.
After this patching, levels of each section marks are:
level0
""""""
level1
======
level2
------
level3
......
level4
######
And use of section markers in each documents are:
- mercurial/help/*.txt can use level1 or more
(now these use level1 and level2)
- help for core commands can use level2 or more
(now these use no section marker)
- descriptions of extensions can use level2 or more
(now hgext/acl uses level2)
- help for commands defined in extension can use level4 or more
(now "convert" of hgext/convert uses level4)
"Level0" is used as top level categorization only in "doc/hg.1.txt"
and the intermediate file generated by "doc/gendoc.py", so end users
don't see it in "hg help" outoput and so on.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 25 Jul 2012 16:40:38 +0900 |
parents | 98166640b356 |
children | 4f8054d3171b |
comparison
equal
deleted
inserted
replaced
17266:4e35dea77e31 | 17267:979b107eaea2 |
---|---|
118 destination repository. No whitespace is allowed in the branch names. This | 118 destination repository. No whitespace is allowed in the branch names. This |
119 can be used to (for instance) move code in one repository from "default" | 119 can be used to (for instance) move code in one repository from "default" |
120 to a named branch. | 120 to a named branch. |
121 | 121 |
122 Mercurial Source | 122 Mercurial Source |
123 '''''''''''''''' | 123 ################ |
124 | 124 |
125 The Mercurial source recognizes the following configuration options, which | 125 The Mercurial source recognizes the following configuration options, which |
126 you can set on the command line with "--config": | 126 you can set on the command line with "--config": |
127 | 127 |
128 convert.hg.ignoreerrors | 128 convert.hg.ignoreerrors |
136 convert.hg.startrev | 136 convert.hg.startrev |
137 convert start revision and its descendants. It takes a hg | 137 convert start revision and its descendants. It takes a hg |
138 revision identifier and defaults to 0. | 138 revision identifier and defaults to 0. |
139 | 139 |
140 CVS Source | 140 CVS Source |
141 '''''''''' | 141 ########## |
142 | 142 |
143 CVS source will use a sandbox (i.e. a checked-out copy) from CVS to | 143 CVS source will use a sandbox (i.e. a checked-out copy) from CVS to |
144 indicate the starting point of what will be converted. Direct access to | 144 indicate the starting point of what will be converted. Direct access to |
145 the repository files is not needed, unless of course the repository is | 145 the repository files is not needed, unless of course the repository is |
146 ":local:". The conversion uses the top level directory in the sandbox to | 146 ":local:". The conversion uses the top level directory in the sandbox to |
186 merging code to be run without doing a conversion. Its parameters and | 186 merging code to be run without doing a conversion. Its parameters and |
187 output are similar to that of cvsps 2.1. Please see the command help for | 187 output are similar to that of cvsps 2.1. Please see the command help for |
188 more details. | 188 more details. |
189 | 189 |
190 Subversion Source | 190 Subversion Source |
191 ''''''''''''''''' | 191 ################# |
192 | 192 |
193 Subversion source detects classical trunk/branches/tags layouts. By | 193 Subversion source detects classical trunk/branches/tags layouts. By |
194 default, the supplied "svn://repo/path/" source URL is converted as a | 194 default, the supplied "svn://repo/path/" source URL is converted as a |
195 single branch. If "svn://repo/path/trunk" exists it replaces the default | 195 single branch. If "svn://repo/path/trunk" exists it replaces the default |
196 branch. If "svn://repo/path/branches" exists, its subdirectories are | 196 branch. If "svn://repo/path/branches" exists, its subdirectories are |
218 | 218 |
219 convert.svn.startrev | 219 convert.svn.startrev |
220 specify start Subversion revision number. The default is 0. | 220 specify start Subversion revision number. The default is 0. |
221 | 221 |
222 Perforce Source | 222 Perforce Source |
223 ''''''''''''''' | 223 ############### |
224 | 224 |
225 The Perforce (P4) importer can be given a p4 depot path or a client | 225 The Perforce (P4) importer can be given a p4 depot path or a client |
226 specification as source. It will convert all files in the source to a flat | 226 specification as source. It will convert all files in the source to a flat |
227 Mercurial repository, ignoring labels, branches and integrations. Note | 227 Mercurial repository, ignoring labels, branches and integrations. Note |
228 that when a depot path is given you then usually should specify a target | 228 that when a depot path is given you then usually should specify a target |
234 convert.p4.startrev | 234 convert.p4.startrev |
235 specify initial Perforce revision (a Perforce changelist | 235 specify initial Perforce revision (a Perforce changelist |
236 number). | 236 number). |
237 | 237 |
238 Mercurial Destination | 238 Mercurial Destination |
239 ''''''''''''''''''''' | 239 ##################### |
240 | 240 |
241 The following options are supported: | 241 The following options are supported: |
242 | 242 |
243 convert.hg.clonebranches | 243 convert.hg.clonebranches |
244 dispatch source branches in separate clones. The default is | 244 dispatch source branches in separate clones. The default is |