Mercurial > hg > hg-fastimport
view fastimport/__init__.py @ 1:9461f5c3a67c
Actually imports something - incredible!
| author | Paul Crowley <paul@lshift.net> |
|---|---|
| date | Fri, 29 Feb 2008 17:58:31 +0000 |
| parents | d107c6d36780 |
| children | f6f0fd01b34a |
line wrap: on
line source
from mercurial import commands import parser import hgechoprocessor import hgimport def fastimport(ui, repo, source, **opts): ui.write("Source is %s\n" % source) f = open(source) proc = hgimport.HgImportProcessor(ui, repo, **opts) #proc = hgechoprocessor.HgEchoProcessor(ui, repo, **opts) p = parser.ImportParser(f) proc.process(p.iter_commands) cmdtable = { "fastimport": (fastimport, [], 'hg fastimport SOURCE') }
