Fix path concatenation to prevent leading double slash
Review Request #6962 — Created Feb. 18, 2015 and submitted
Information | |
---|---|
gmyers | |
RBTools | |
master | |
2fdeb88... | |
Reviewers | |
rbtools | |
In
SVNClient.convert_to_absolute_paths()
when concatenating paths when the --repository-url option is specified, it was possible to end up with a leading double slash whenrepository_info.base_path
was '/'. Switch toposixpath.join()
to correctly concatenate paths for all cases, with platform independent Unix-style slashes.
Tested on both Linux and Windows. Tested where base_path = '/': Old output: //file.txt New output: /file.txt Tested where base_path = '/foo': Old output: /foo/file.txt New output: /foo/file.txt
Description | From | Last Updated |
---|---|---|
If running on a windows system, does this do the wrong thing and join with '\'? |
|
-
-
rbtools/clients/svn.py (Diff revision 1) If running on a windows system, does this do the wrong thing and join with '\'?
Description: |
|
|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Testing Done: |
|
|||||||||||||||||||||||||||
Commit: |
|
|||||||||||||||||||||||||||
Diff: |
Revision 2 (+2 -1) |