comparison hgext/convert/__init__.py @ 11321:40c06bbf58be

help: show value requirement and multiple occurrence of options this helps users to know what kind of option is: - no value is required(flag option) - value is required - value is required, and multiple occurrences are allowed each kinds are shown as below: -f --force force push -e --ssh CMD specify ssh command to use -b --branch BRANCH [+] a specific branch you would like to push if one or more 3rd type options are shown, explanation for '[+]' mark is also shown as footnote.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sun, 06 Jun 2010 17:25:00 +0900
parents 08a0f04b56bd
children dec57aa0f8ca
comparison
equal deleted inserted replaced
11320:e4274f9f97c8 11321:40c06bbf58be
256 commands.norepo += " convert debugsvnlog debugcvsps" 256 commands.norepo += " convert debugsvnlog debugcvsps"
257 257
258 cmdtable = { 258 cmdtable = {
259 "convert": 259 "convert":
260 (convert, 260 (convert,
261 [('A', 'authors', '', _('username mapping filename')), 261 [('A', 'authors', '',
262 ('d', 'dest-type', '', _('destination repository type')), 262 _('username mapping filename'), _('FILE')),
263 ('', 'filemap', '', _('remap file names using contents of file')), 263 ('d', 'dest-type', '',
264 ('r', 'rev', '', _('import up to target revision REV')), 264 _('destination repository type'), _('TYPE')),
265 ('s', 'source-type', '', _('source repository type')), 265 ('', 'filemap', '',
266 ('', 'splicemap', '', _('splice synthesized history into place')), 266 _('remap file names using contents of file'), _('FILE')),
267 ('', 'branchmap', '', _('change branch names while converting')), 267 ('r', 'rev', '',
268 _('import up to target revision REV'), _('REV')),
269 ('s', 'source-type', '',
270 _('source repository type'), _('TYPE')),
271 ('', 'splicemap', '',
272 _('splice synthesized history into place'), _('FILE')),
273 ('', 'branchmap', '',
274 _('change branch names while converting'), _('FILE')),
268 ('', 'branchsort', None, _('try to sort changesets by branches')), 275 ('', 'branchsort', None, _('try to sort changesets by branches')),
269 ('', 'datesort', None, _('try to sort changesets by date')), 276 ('', 'datesort', None, _('try to sort changesets by date')),
270 ('', 'sourcesort', None, _('preserve source changesets order'))], 277 ('', 'sourcesort', None, _('preserve source changesets order'))],
271 _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')), 278 _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')),
272 "debugsvnlog": 279 "debugsvnlog":