Merge lp:~jelmer/bzr-upload/only-strip-slash into lp:bzr-upload
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | 84 |
Merged at revision: | 88 |
Proposed branch: | lp:~jelmer/bzr-upload/only-strip-slash |
Merge into: | lp:bzr-upload |
Diff against target: |
11 lines (+1/-1) 1 file modified
tests/test_upload.py (+1/-1) |
To merge this branch: | bzr merge lp:~jelmer/bzr-upload/only-strip-slash |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool (community) | Approve | ||
Martin Packman (community) | Approve | ||
Review via email: mp+80111@code.launchpad.net |
Description of the change
In a test, only remove the last character from a branch base if it is a slash.
This fixes running the bzr-upload testsuite when run against bzr-svn.
To post a comment you must log in.
Only stripping trailing slashes is clearly an improvement on always removing whatever the last character is and this should clearly land.
However, doing url manipulation with basic string functions, even simple stuff like this, makes me nervous. I'm thinking particularly of this change:
<https:/ /code.launchpad .net/~gz/ bzr/root_ drive_file_ url_841322/ +merge/ 74034>
self.base = base parameters = urlutils. split_segment_ parameters( "/"))[1] parameters = urlutils. split_segment_ parameters( base)[1]
- self._segment_
- base.rstrip(
+ self._segment_
Which was needed to avoid some very surprising breakage.