##// END OF EJS Templates
convert/subversion.py: str.rsplit is not available in Python 2.3
Bryan O'Sullivan -
r4927:5e89b0da default
parent child Browse files
Show More
@@ -62,8 +62,10 b' class convert_svn(converter_source):'
62 try:
62 try:
63 # Support file://path@rev syntax. Useful e.g. to convert
63 # Support file://path@rev syntax. Useful e.g. to convert
64 # deleted branches.
64 # deleted branches.
65 url, latest = url.rsplit("@", 1)
65 at = url.rfind('@')
66 latest = int(latest)
66 if at >= 0:
67 latest = int(url[at+1:])
68 url = url[:at]
67 except ValueError, e:
69 except ValueError, e:
68 pass
70 pass
69 self.url = url
71 self.url = url
General Comments 0
You need to be logged in to leave comments. Login now