Mercurial > hg
comparison hgext/convert/__init__.py @ 6999:f1546aa94362
i18n, convert: mark command line options for translation
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 06 Sep 2008 17:43:59 +0200 |
parents | b072266a83d1 |
children | 209ef5f3534c |
comparison
equal
deleted
inserted
replaced
6998:ddfcefab8b97 | 6999:f1546aa94362 |
---|---|
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 '''converting foreign VCS repositories to Mercurial''' | 7 '''converting foreign VCS repositories to Mercurial''' |
8 | 8 |
9 import convcmd | 9 import convcmd |
10 from mercurial import commands | 10 from mercurial import commands |
11 from mercurial.i18n import _ | |
11 | 12 |
12 # Commands definition was moved elsewhere to ease demandload job. | 13 # Commands definition was moved elsewhere to ease demandload job. |
13 | 14 |
14 def convert(ui, src, dest=None, revmapfile=None, **opts): | 15 def convert(ui, src, dest=None, revmapfile=None, **opts): |
15 """Convert a foreign SCM repository to a Mercurial one. | 16 """Convert a foreign SCM repository to a Mercurial one. |
179 commands.norepo += " convert debugsvnlog" | 180 commands.norepo += " convert debugsvnlog" |
180 | 181 |
181 cmdtable = { | 182 cmdtable = { |
182 "convert": | 183 "convert": |
183 (convert, | 184 (convert, |
184 [('A', 'authors', '', 'username mapping filename'), | 185 [('A', 'authors', '', _('username mapping filename')), |
185 ('d', 'dest-type', '', 'destination repository type'), | 186 ('d', 'dest-type', '', _('destination repository type')), |
186 ('', 'filemap', '', 'remap file names using contents of file'), | 187 ('', 'filemap', '', _('remap file names using contents of file')), |
187 ('r', 'rev', '', 'import up to target revision REV'), | 188 ('r', 'rev', '', _('import up to target revision REV')), |
188 ('s', 'source-type', '', 'source repository type'), | 189 ('s', 'source-type', '', _('source repository type')), |
189 ('', 'splicemap', '', 'splice synthesized history into place'), | 190 ('', 'splicemap', '', _('splice synthesized history into place')), |
190 ('', 'datesort', None, 'try to sort changesets by date')], | 191 ('', 'datesort', None, _('try to sort changesets by date'))], |
191 'hg convert [OPTION]... SOURCE [DEST [REVMAP]]'), | 192 _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]')), |
192 "debugsvnlog": | 193 "debugsvnlog": |
193 (debugsvnlog, | 194 (debugsvnlog, |
194 [], | 195 [], |
195 'hg debugsvnlog'), | 196 'hg debugsvnlog'), |
196 } | 197 } |