changeset 4807: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	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"""
--- 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
--- 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"):
--- 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: