# HG changeset patch # User Brendan Cully # Date 1183662004 25200 # Node ID 15a3cbfc65686381d6a4df4fa09a75746ba00a8b # Parent 6aa1fae4c28a29cac3bd38b262c43ec603beae85 convert: call superclass init from engine init functions diff -r 6aa1fae4c28a -r 15a3cbfc6568 hgext/convert/common.py --- a/hgext/convert/common.py Wed Jul 04 13:38:49 2007 -0700 +++ b/hgext/convert/common.py Thu Jul 05 12:00:04 2007 -0700 @@ -17,7 +17,7 @@ def __init__(self, ui, path, rev=None): """Initialize conversion source (or raise NoRepo("message") exception if path is not a valid repository)""" - raise NotImplementedError() + pass def getheads(self): """Return a list of this repository's heads""" diff -r 6aa1fae4c28a -r 15a3cbfc6568 hgext/convert/cvs.py --- a/hgext/convert/cvs.py Wed Jul 04 13:38:49 2007 -0700 +++ b/hgext/convert/cvs.py Thu Jul 05 12:00:04 2007 -0700 @@ -7,6 +7,8 @@ class convert_cvs(converter_source): def __init__(self, ui, path, rev=None): + super(convert_cvs, self).__init__(ui, path, rev=rev) + self.path = path self.ui = ui self.rev = rev diff -r 6aa1fae4c28a -r 15a3cbfc6568 hgext/convert/git.py --- a/hgext/convert/git.py Wed Jul 04 13:38:49 2007 -0700 +++ b/hgext/convert/git.py Thu Jul 05 12:00:04 2007 -0700 @@ -9,6 +9,8 @@ return os.popen('GIT_DIR=%s %s' % (self.path, s)) def __init__(self, ui, path, rev=None): + super(convert_git, self).__init__(ui, path, rev=rev) + if os.path.isdir(path + "/.git"): path += "/.git" if not os.path.exists(path + "/objects"): diff -r 6aa1fae4c28a -r 15a3cbfc6568 hgext/convert/subversion.py --- a/hgext/convert/subversion.py Wed Jul 04 13:38:49 2007 -0700 +++ b/hgext/convert/subversion.py Thu Jul 05 12:00:04 2007 -0700 @@ -77,6 +77,8 @@ # SVN conversion code stolen from bzr-svn and tailor class convert_svn(converter_source): def __init__(self, ui, url, rev=None): + super(convert_svn, self).__init__(ui, url, rev=rev) + try: SubversionException except NameError: