Mercurial > hg > hg-fastimport
diff hgfastimport/hgimport.py @ 52:38fe4f98a3ff
Use new utility function fastimport.processor.parseMany().
| author | Greg Ward <greg-hg@gerg.ca> |
|---|---|
| date | Sun, 24 May 2009 10:53:02 -0400 |
| parents | ed66bd7bd2f6 |
| children | a88f0dd05e92 |
line wrap: on
line diff
--- a/hgfastimport/hgimport.py Fri Jul 10 14:12:30 2009 -0400 +++ b/hgfastimport/hgimport.py Sun May 24 10:53:02 2009 -0400 @@ -109,14 +109,7 @@ def _parse(self): if self.parsed: return - - for source in self.sources: - self.ui.debug("reading fastimport source: %s\n" % source) - f = open(source) - p = parser.ImportParser(f) - self.processor.process(p.parse) - f.close() - + processor.parseMany(self.sources, parser.ImportParser, self.processor) self.parsed = True class HgImportProcessor(processor.ImportProcessor):
