Merge lp://staging/~jameinel/bzr/2.4-testament-binary-1010339 into lp://staging/bzr/2.4
Proposed by
John A Meinel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jelmer Vernooij | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 6071 | ||||
Proposed branch: | lp://staging/~jameinel/bzr/2.4-testament-binary-1010339 | ||||
Merge into: | lp://staging/bzr/2.4 | ||||
Diff against target: |
91 lines (+24/-2) 4 files modified
bzrlib/btree_index.py (+6/-0) bzrlib/builtins.py (+3/-2) bzrlib/tests/blackbox/test_testament.py (+11/-0) doc/en/release-notes/bzr-2.4.txt (+4/-0) |
||||
To merge this branch: | bzr merge lp://staging/~jameinel/bzr/2.4-testament-binary-1010339 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Needs Information | ||
Alexander Belchenko | Approve | ||
Review via email: mp+109301@code.staging.launchpad.net |
Commit message
Fix bug #1010339, use encoding_
Description of the change
A bugfix for bug #1010339. Basically, we weren't setting O_BINARY for sys.stdout for 'bzr testament'.
The test here isn't quite good enough, because it doesn't spawn a subprocess to actually test the output. However, that is only useful on Windows.
The difference is that if you do change sys.stdout to self.outf, then the test will fail because of double encoding. So it does push us towards using encoding_type = 'exact'.
I'm targetting 2.4, because this seems a simple bugfix. We don't have to backport it, because it certainly isn't a regression, but the number of touched lines is quite small.
To post a comment you must log in.
John A Meinel пишет:
> John A Meinel has proposed merging lp:~jameinel/bzr/2.4-testament-binary-1010339 into lp:bzr/2.4.
>
> A bugfix for bug #1010339. Basically, we weren't setting O_BINARY for sys.stdout for 'bzr testament'.
The first hunk (changes in btree_index.py re new_leaf) looks suspicious
because it does not fit your description. Maybe it's also important fix,
but seems unrelated to stdout.
--
All the dude wanted was his rug back