Show More
@@ -185,6 +185,8 b' class svn_source(converter_source):' | |||||
185 | self.ra = self.transport.ra |
|
185 | self.ra = self.transport.ra | |
186 | self.ctx = self.transport.client |
|
186 | self.ctx = self.transport.client | |
187 | self.base = svn.ra.get_repos_root(self.ra) |
|
187 | self.base = svn.ra.get_repos_root(self.ra) | |
|
188 | # Module is either empty or a repository path starting with | |||
|
189 | # a slash and not ending with a slash. | |||
188 | self.module = self.url[len(self.base):] |
|
190 | self.module = self.url[len(self.base):] | |
189 | self.rootmodule = self.module |
|
191 | self.rootmodule = self.module | |
190 | self.commits = {} |
|
192 | self.commits = {} | |
@@ -543,10 +545,10 b' class svn_source(converter_source):' | |||||
543 | # "/CMFPlone/branches/Plone-2_0-branch/tests/PloneTestCase.py" |
|
545 | # "/CMFPlone/branches/Plone-2_0-branch/tests/PloneTestCase.py" | |
544 | # that is to say "tests/PloneTestCase.py" |
|
546 | # that is to say "tests/PloneTestCase.py" | |
545 | if path.startswith(module): |
|
547 | if path.startswith(module): | |
546 | relative = path[len(module):] |
|
548 | relative = path.rstrip('/')[len(module):] | |
547 | if relative.startswith('/'): |
|
549 | if relative.startswith('/'): | |
548 | return relative[1:] |
|
550 | return relative[1:] | |
549 |
el |
|
551 | elif relative == '': | |
550 | return relative |
|
552 | return relative | |
551 |
|
553 | |||
552 | # The path is outside our tracked tree... |
|
554 | # The path is outside our tracked tree... |
General Comments 0
You need to be logged in to leave comments.
Login now