Mercurial > hg
comparison hgext/convert/__init__.py @ 12198:0c67a58f0580
convert: deprecate --authors in preference for --authormap
This aligns the authormap option with the other three mapping options.
The old --authors option is still supported and 'hg help convert -v'
will still show it.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 10 Sep 2010 01:34:14 +0200 |
parents | 6045d467abd7 |
children | d346089095ac |
comparison
equal
deleted
inserted
replaced
12197:540693065d40 | 12198:0c67a58f0580 |
---|---|
68 | 68 |
69 If the file doesn't exist, it's automatically created. It's | 69 If the file doesn't exist, it's automatically created. It's |
70 updated on each commit copied, so :hg:`convert` can be interrupted | 70 updated on each commit copied, so :hg:`convert` can be interrupted |
71 and can be run repeatedly to copy new commits. | 71 and can be run repeatedly to copy new commits. |
72 | 72 |
73 The username mapping file is a simple text file that maps each | 73 The authormap is a simple text file that maps each source commit |
74 source commit author to a destination commit author. It is handy | 74 author to a destination commit author. It is handy for source SCMs |
75 for source SCMs that use unix logins to identify authors (eg: | 75 that use unix logins to identify authors (eg: CVS). One line per |
76 CVS). One line per author mapping and the line format is:: | 76 author mapping and the line format is:: |
77 | 77 |
78 source author = destination author | 78 source author = destination author |
79 | 79 |
80 Empty lines and lines starting with a ``#`` are ignored. | 80 Empty lines and lines starting with a ``#`` are ignored. |
81 | 81 |
273 | 273 |
274 cmdtable = { | 274 cmdtable = { |
275 "convert": | 275 "convert": |
276 (convert, | 276 (convert, |
277 [('A', 'authors', '', | 277 [('A', 'authors', '', |
278 _('username mapping filename'), _('FILE')), | 278 _('username mapping filename (DEPRECATED, use --authormap instead)'), |
279 _('FILE')), | |
279 ('s', 'source-type', '', | 280 ('s', 'source-type', '', |
280 _('source repository type'), _('TYPE')), | 281 _('source repository type'), _('TYPE')), |
281 ('d', 'dest-type', '', | 282 ('d', 'dest-type', '', |
282 _('destination repository type'), _('TYPE')), | 283 _('destination repository type'), _('TYPE')), |
283 ('r', 'rev', '', | 284 ('r', 'rev', '', |
284 _('import up to target revision REV'), _('REV')), | 285 _('import up to target revision REV'), _('REV')), |
286 ('', 'authormap', '', | |
287 _('remap usernames using this file'), _('FILE')), | |
285 ('', 'filemap', '', | 288 ('', 'filemap', '', |
286 _('remap file names using contents of file'), _('FILE')), | 289 _('remap file names using contents of file'), _('FILE')), |
287 ('', 'splicemap', '', | 290 ('', 'splicemap', '', |
288 _('splice synthesized history into place'), _('FILE')), | 291 _('splice synthesized history into place'), _('FILE')), |
289 ('', 'branchmap', '', | 292 ('', 'branchmap', '', |