# HG changeset patch # User Bryan O'Sullivan # Date 1192055400 25200 # Node ID b4ae8535f8346cb8b369df7f767cdc7473fb1127 # Parent d0c67b52ac01bba493e4b3d393ce7d76a30de81b convert: add default constructor for converter_sink diff -r d0c67b52ac01 -r b4ae8535f834 hgext/convert/common.py --- a/hgext/convert/common.py Wed Oct 10 15:30:00 2007 -0700 +++ b/hgext/convert/common.py Wed Oct 10 15:30:00 2007 -0700 @@ -117,7 +117,8 @@ def __init__(self, ui, path): """Initialize conversion sink (or raise NoRepo("message") exception if path is not a valid repository)""" - raise NotImplementedError() + self.path = path + self.ui = ui def getheads(self): """Return a list of this repository's heads""" diff -r d0c67b52ac01 -r b4ae8535f834 hgext/convert/hg.py --- a/hgext/convert/hg.py Wed Oct 10 15:30:00 2007 -0700 +++ b/hgext/convert/hg.py Wed Oct 10 15:30:00 2007 -0700 @@ -16,8 +16,7 @@ class mercurial_sink(converter_sink): def __init__(self, ui, path): - self.path = path - self.ui = ui + converter_sink.__init__(self, ui, path) self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True) self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False) self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default')