Merge lp:~abentley/bzr/parse-binary-diff-2.0 into lp:bzr/2.0
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~abentley/bzr/parse-binary-diff-2.0 |
Merge into: | lp:bzr/2.0 |
Diff against target: |
82 lines 4 files modified
NEWS (+1/-0) bzrlib/patches.py (+6/-2) bzrlib/tests/test_patches.py (+9/-0) bzrlib/tests/test_patches_data/binary-after-normal.patch (+6/-0) |
To merge this branch: | bzr merge lp:~abentley/bzr/parse-binary-diff-2.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Review via email: mp+14421@code.launchpad.net |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
My initial fix for binary file sections in patches turns out to be
woefully incomplete, as it only works for binary file sections that
appear at the beginning of the patch. This patch ensures that binary
file sections that appear after normal hunks also work.
In order to do this, iter_file_patch must recognize that a "binary files
differ" section indicates the beginning of a new file. The performance
impact should be negligible, since a compiled regex is used.
I am proposing this against 2.0 because it's a relatively uninvasive bugfix.
Aaron enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr xkHUACgkQ0F+ nu1YWqI1zGACghB 5mp3zJCml707PHS 7kDEF+A 8GrStU8c9tJiaFB st7xUpZ
wysAn3iEt/
=qcqP
-----END PGP SIGNATURE-----