Show More
@@ -10,7 +10,7 b'' | |||||
10 | import convcmd |
|
10 | import convcmd | |
11 | import cvsps |
|
11 | import cvsps | |
12 | import subversion |
|
12 | import subversion | |
13 |
from mercurial import cmdutil, |
|
13 | from mercurial import cmdutil, templatekw | |
14 | from mercurial.i18n import _ |
|
14 | from mercurial.i18n import _ | |
15 |
|
15 | |||
16 | cmdtable = {} |
|
16 | cmdtable = {} | |
@@ -37,7 +37,8 b" testedwith = 'internal'" | |||||
37 | ('', 'datesort', None, _('try to sort changesets by date')), |
|
37 | ('', 'datesort', None, _('try to sort changesets by date')), | |
38 | ('', 'sourcesort', None, _('preserve source changesets order')), |
|
38 | ('', 'sourcesort', None, _('preserve source changesets order')), | |
39 | ('', 'closesort', None, _('try to reorder closed revisions'))], |
|
39 | ('', 'closesort', None, _('try to reorder closed revisions'))], | |
40 |
_('hg convert [OPTION]... SOURCE [DEST [REVMAP]]') |
|
40 | _('hg convert [OPTION]... SOURCE [DEST [REVMAP]]'), | |
|
41 | norepo=True) | |||
41 | def convert(ui, src, dest=None, revmapfile=None, **opts): |
|
42 | def convert(ui, src, dest=None, revmapfile=None, **opts): | |
42 | """convert a foreign SCM repository to a Mercurial one. |
|
43 | """convert a foreign SCM repository to a Mercurial one. | |
43 |
|
44 | |||
@@ -303,7 +304,7 b' def convert(ui, src, dest=None, revmapfi' | |||||
303 | """ |
|
304 | """ | |
304 | return convcmd.convert(ui, src, dest, revmapfile, **opts) |
|
305 | return convcmd.convert(ui, src, dest, revmapfile, **opts) | |
305 |
|
306 | |||
306 | @command('debugsvnlog', [], 'hg debugsvnlog') |
|
307 | @command('debugsvnlog', [], 'hg debugsvnlog', norepo=True) | |
307 | def debugsvnlog(ui, **opts): |
|
308 | def debugsvnlog(ui, **opts): | |
308 | return subversion.debugsvnlog(ui, **opts) |
|
309 | return subversion.debugsvnlog(ui, **opts) | |
309 |
|
310 | |||
@@ -324,7 +325,8 b' def debugsvnlog(ui, **opts):' | |||||
324 | # Options that are ignored for compatibility with cvsps-2.1 |
|
325 | # Options that are ignored for compatibility with cvsps-2.1 | |
325 | ('A', 'cvs-direct', None, _('ignored for compatibility')), |
|
326 | ('A', 'cvs-direct', None, _('ignored for compatibility')), | |
326 | ], |
|
327 | ], | |
327 |
_('hg debugcvsps [OPTION]... [PATH]...') |
|
328 | _('hg debugcvsps [OPTION]... [PATH]...'), | |
|
329 | norepo=True) | |||
328 | def debugcvsps(ui, *args, **opts): |
|
330 | def debugcvsps(ui, *args, **opts): | |
329 | '''create changeset information from CVS |
|
331 | '''create changeset information from CVS | |
330 |
|
332 | |||
@@ -338,8 +340,6 b' def debugcvsps(ui, *args, **opts):' | |||||
338 | dates.''' |
|
340 | dates.''' | |
339 | return cvsps.debugcvsps(ui, *args, **opts) |
|
341 | return cvsps.debugcvsps(ui, *args, **opts) | |
340 |
|
342 | |||
341 | commands.norepo += " convert debugsvnlog debugcvsps" |
|
|||
342 |
|
||||
343 | def kwconverted(ctx, name): |
|
343 | def kwconverted(ctx, name): | |
344 | rev = ctx.extra().get('convert_revision', '') |
|
344 | rev = ctx.extra().get('convert_revision', '') | |
345 | if rev.startswith('svn:'): |
|
345 | if rev.startswith('svn:'): |
General Comments 0
You need to be logged in to leave comments.
Login now