changeset 4806:15a3cbfc6568

convert: call superclass init from engine init functions
author Brendan Cully <brendan@kublai.com>
date Thu, 05 Jul 2007 12:00:04 -0700
parents 6aa1fae4c28a
children 244a2609c199
files hgext/convert/common.py hgext/convert/cvs.py hgext/convert/git.py hgext/convert/subversion.py
diffstat 4 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py
+++ b/hgext/convert/common.py
@@ -17,7 +17,7 @@ class converter_source(object):
     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"""
--- a/hgext/convert/cvs.py
+++ b/hgext/convert/cvs.py
@@ -7,6 +7,8 @@ from common import NoRepo, commit, conve
 
 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
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -9,6 +9,8 @@ class convert_git(converter_source):
         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"):
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -77,6 +77,8 @@ class svn_paths(object):
 # 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: