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