Mercurial > hg > hg-fastimport
view fastimport/__init__.py @ 0:d107c6d36780
Add the start of the hg fastimport command
| author | Paul Crowley <paul@lshift.net> |
|---|---|
| date | Fri, 29 Feb 2008 12:19:18 +0000 |
| parents | |
| children | 9461f5c3a67c |
line wrap: on
line source
from mercurial import commands import parser #import dates #import commands #from fastimport.hgechoprocessor import HgEchoProcessor import hgechoprocessor #import hhhh #from hhhh import HgEchoProcessor def fastimport(ui, repo, source, **opts): ui.write("Source is %s\n" % source) f = open(source) proc = hgechoprocessor.HgEchoProcessor(ui, repo, **opts) p = parser.ImportParser(f) proc.process(p.iter_commands) cmdtable = { "fastimport": (fastimport, [], 'hg fastimport SOURCE') }
