##// END OF EJS Templates
convert: call superclass init from engine init functions
Brendan Cully -
r4807:15a3cbfc default
parent child Browse files
Show More
@@ -17,7 +17,7 b' class converter_source(object):'
17 17 def __init__(self, ui, path, rev=None):
18 18 """Initialize conversion source (or raise NoRepo("message")
19 19 exception if path is not a valid repository)"""
20 raise NotImplementedError()
20 pass
21 21
22 22 def getheads(self):
23 23 """Return a list of this repository's heads"""
@@ -7,6 +7,8 b' from common import NoRepo, commit, conve'
7 7
8 8 class convert_cvs(converter_source):
9 9 def __init__(self, ui, path, rev=None):
10 super(convert_cvs, self).__init__(ui, path, rev=rev)
11
10 12 self.path = path
11 13 self.ui = ui
12 14 self.rev = rev
@@ -9,6 +9,8 b' class convert_git(converter_source):'
9 9 return os.popen('GIT_DIR=%s %s' % (self.path, s))
10 10
11 11 def __init__(self, ui, path, rev=None):
12 super(convert_git, self).__init__(ui, path, rev=rev)
13
12 14 if os.path.isdir(path + "/.git"):
13 15 path += "/.git"
14 16 if not os.path.exists(path + "/objects"):
@@ -77,6 +77,8 b' class svn_paths(object):'
77 77 # SVN conversion code stolen from bzr-svn and tailor
78 78 class convert_svn(converter_source):
79 79 def __init__(self, ui, url, rev=None):
80 super(convert_svn, self).__init__(ui, url, rev=rev)
81
80 82 try:
81 83 SubversionException
82 84 except NameError:
General Comments 0
You need to be logged in to leave comments. Login now