2293 Public method to normalize a url for subversion. |
2293 Public method to normalize a url for subversion. |
2294 |
2294 |
2295 @param url url string (string) |
2295 @param url url string (string) |
2296 @return properly normalized url for subversion (string) |
2296 @return properly normalized url for subversion (string) |
2297 """ |
2297 """ |
2298 protocol, url = url.split("://") |
2298 protocol, url = url.split("://", 1) |
2299 if url.startswith("\\\\"): |
2299 if url.startswith("\\\\"): |
2300 url = url[2:] |
2300 url = url[2:] |
2301 if protocol == "file": |
2301 if protocol == "file": |
2302 url = os.path.normcase(url) |
2302 url = os.path.normcase(url) |
2303 if url[1] == ":": |
2303 if url[1] == ":": |