Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/convert/common.py @ 5437:71e7c86adcb7
convert: refactor sink initialisation, to remove hardcoding of hg
We also introduce options to explicitly set the source and destination
repository types.
Improve testing of corner cases a little.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 10 Oct 2007 15:42:00 -0700 |
parents | b4ae8535f834 |
children |
line wrap: on
line diff
--- a/hgext/convert/common.py +++ b/hgext/convert/common.py @@ -116,9 +116,13 @@ class converter_sink(object): def __init__(self, ui, path): """Initialize conversion sink (or raise NoRepo("message") - exception if path is not a valid repository)""" + exception if path is not a valid repository) + + created is a list of paths to remove if a fatal error occurs + later""" + self.ui = ui self.path = path - self.ui = ui + self.created = [] def getheads(self): """Return a list of this repository's heads"""