##// END OF EJS Templates
convert: urlify svn repos if necessary....
Brendan Cully -
r5008:b6c3abdb default
parent child Browse files
Show More
@@ -36,6 +36,11 b' try:'
36 36 except ImportError:
37 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 44 class CompatibilityException(Exception): pass
40 45
41 46 class changedpath(object):
@@ -74,10 +79,10 b' class convert_svn(converter_source):'
74 79 url = url[:at]
75 80 except ValueError, e:
76 81 pass
77 self.url = url
82 self.url = geturl(url)
78 83 self.encoding = 'UTF-8' # Subversion is always nominal UTF-8
79 84 try:
80 self.transport = transport.SvnRaTransport(url=url)
85 self.transport = transport.SvnRaTransport(url=self.url)
81 86 self.ra = self.transport.ra
82 87 self.ctx = self.transport.client
83 88 self.base = svn.ra.get_repos_root(self.ra)
General Comments 0
You need to be logged in to leave comments. Login now