Show More
@@ -36,6 +36,11 b' try:' | |||||
36 | except ImportError: |
|
36 | except ImportError: | |
37 | pass |
|
37 | pass | |
38 |
|
38 | |||
|
39 | def geturl(path): | |||
|
40 | if os.path.isdir(path): | |||
|
41 | return 'file://%s' % os.path.normpath(os.path.abspath(path)) | |||
|
42 | return path | |||
|
43 | ||||
39 | class CompatibilityException(Exception): pass |
|
44 | class CompatibilityException(Exception): pass | |
40 |
|
45 | |||
41 | class changedpath(object): |
|
46 | class changedpath(object): | |
@@ -74,10 +79,10 b' class convert_svn(converter_source):' | |||||
74 | url = url[:at] |
|
79 | url = url[:at] | |
75 | except ValueError, e: |
|
80 | except ValueError, e: | |
76 | pass |
|
81 | pass | |
77 | self.url = url |
|
82 | self.url = geturl(url) | |
78 | self.encoding = 'UTF-8' # Subversion is always nominal UTF-8 |
|
83 | self.encoding = 'UTF-8' # Subversion is always nominal UTF-8 | |
79 | try: |
|
84 | try: | |
80 | self.transport = transport.SvnRaTransport(url=url) |
|
85 | self.transport = transport.SvnRaTransport(url=self.url) | |
81 | self.ra = self.transport.ra |
|
86 | self.ra = self.transport.ra | |
82 | self.ctx = self.transport.client |
|
87 | self.ctx = self.transport.client | |
83 | self.base = svn.ra.get_repos_root(self.ra) |
|
88 | self.base = svn.ra.get_repos_root(self.ra) |
General Comments 0
You need to be logged in to leave comments.
Login now