2275 Public method to normalize a url for subversion. |
2275 Public method to normalize a url for subversion. |
2276 |
2276 |
2277 @param url url string (string) |
2277 @param url url string (string) |
2278 @return properly normalized url for subversion (string) |
2278 @return properly normalized url for subversion (string) |
2279 """ |
2279 """ |
2280 protocol, url = url.split("://") |
2280 protocol, url = url.split("://", 1) |
2281 if url.startswith("\\\\"): |
2281 if url.startswith("\\\\"): |
2282 url = url[2:] |
2282 url = url[2:] |
2283 if protocol == "file": |
2283 if protocol == "file": |
2284 url = os.path.normcase(url) |
2284 url = os.path.normcase(url) |
2285 if url[1] == ":": |
2285 if url[1] == ":": |