##// 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 62 try:
63 63 # Support file://path@rev syntax. Useful e.g. to convert
64 64 # deleted branches.
65 url, latest = url.rsplit("@", 1)
66 latest = int(latest)
65 at = url.rfind('@')
66 if at >= 0:
67 latest = int(url[at+1:])
68 url = url[:at]
67 69 except ValueError, e:
68 70 pass
69 71 self.url = url
General Comments 0
You need to be logged in to leave comments. Login now