hgext/convert/__init__.py
changeset 5111 9cda2315c7a9
parent 5107 c14968344d19
child 5112 18abf13064cb
equal deleted inserted replaced
5110:2be225ea5722 5111:9cda2315c7a9
    13 
    13 
    14 import os, shlex, shutil, sys
    14 import os, shlex, shutil, sys
    15 from mercurial import hg, ui, util, commands
    15 from mercurial import hg, ui, util, commands
    16 from mercurial.i18n import _
    16 from mercurial.i18n import _
    17 
    17 
    18 commands.norepo += " convert debug-svn-log"
    18 commands.norepo += " convert debugsvnlog"
    19 
    19 
    20 converters = [convert_cvs, convert_git, convert_svn, mercurial_source,
    20 converters = [convert_cvs, convert_git, convert_svn, mercurial_source,
    21               mercurial_sink]
    21               mercurial_sink]
    22 
    22 
    23 def convertsource(ui, path, **opts):
    23 def convertsource(ui, path, **opts):
   448          [('A', 'authors', '', 'username mapping filename'),
   448          [('A', 'authors', '', 'username mapping filename'),
   449           ('', 'filemap', '', 'remap file names using contents of file'),
   449           ('', 'filemap', '', 'remap file names using contents of file'),
   450           ('r', 'rev', '', 'import up to target revision REV'),
   450           ('r', 'rev', '', 'import up to target revision REV'),
   451           ('', 'datesort', None, 'try to sort changesets by date')],
   451           ('', 'datesort', None, 'try to sort changesets by date')],
   452          'hg convert [OPTION]... SOURCE [DEST [MAPFILE]]'),
   452          'hg convert [OPTION]... SOURCE [DEST [MAPFILE]]'),
   453     "debug-svn-log":
   453     "debugsvnlog":
   454         (debugsvnlog,
   454         (debugsvnlog,
   455          [],
   455          [],
   456          'hg debug-svn-log'),
   456          'hg debugsvnlog'),
   457 }
   457 }
   458 
   458