Merge lp:~gz/bzr/2.4_overflow_pack_stat_683191_706957 into lp:bzr/2.4
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6048 |
Proposed branch: | lp:~gz/bzr/2.4_overflow_pack_stat_683191_706957 |
Merge into: | lp:bzr/2.4 |
Diff against target: |
122 lines (+68/-8) 4 files modified
bzrlib/_dirstate_helpers_pyx.pyx (+8/-6) bzrlib/dirstate.py (+3/-2) bzrlib/tests/test__dirstate_helpers.py (+53/-0) doc/en/release-notes/bzr-2.4.txt (+4/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/2.4_overflow_pack_stat_683191_706957 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Review via email: mp+77373@code.launchpad.net |
Commit message
Truncate stat fields to 4 bytes in pack_stat functions used by dirstate
Description of the change
Fix on 2.4 branch for overflow issues with pack_stat, for a complete discussion of the change see the merge proposal for trunk:
<https:/
There are a couple of things to remark on here in addition.
Firstly, only the version of pack_stat in dirstate that actually gets used in updated, but I haven't removed the old code as was done for trunk in <lp:~gz/bzr/move_pack_stat_to_dirstate_helpers> just in case.
Secondly, the tests here only cover the python implementation, exposing the pyrex version and parametrising against it is only done on trunk. As the code change is identical and the tests work there, this shouldn't matter too much.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/28/2011 7:41 PM, Martin Packman wrote: OverflowError: long int too large to convert" helpers_ pyx.c" /bugs.launchpad .net/bzr/ +bug/683191 Bug #706957 in Bazaar: /bugs.launchpad .net/bzr/ +bug/706957 /code.launchpad .net/~gz/ bzr/2.4_ overflow_ pack_stat_ 683191_ 706957/ +merge/ 77373 /code.launchpad .net/~gz/ bzr/overflow_ pack_stat_ 683191_ 706957/ +merge/ 77372>
> Martin Packman has proposed merging
> lp:~gz/bzr/2.4_overflow_pack_stat_683191_706957 into lp:bzr/2.4.
>
> Requested reviews: bzr-core (bzr-core) Related bugs: Bug #683191 in
> Bazaar: ""exceptions.
> in _dirstate_
> https:/
> "OverflowError in _dirstate_helpers pack_stat"
> https:/
>
> For more details, see:
> https:/
>
> Fix on 2.4 branch for overflow issues with pack_stat, for a
> complete discussion of the change see the merge proposal for
> trunk:
> <https:/
>
> There are a couple of things to remark on here in addition.
>
> Firstly, only the version of pack_stat in dirstate that actually
> gets used in updated, but I haven't removed the old code as was
> done for trunk in <lp:~gz/bzr/move_pack_stat_to_dirstate_helpers>
> just in case.
>
> Secondly, the tests here only cover the python implementation,
> exposing the pyrex version and parametrising against it is only
> done on trunk. As the code change is identical and the tests work
> there, this shouldn't matter too much.
merge: approve
I don't really see why you couldn't copy across everything from the
2.5 implementation, but it isn't a big deal.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk6 DZ8cACgkQJdeBCY SNAAOx0QCbBkwMc 4s+SflCplMbf180 INWx sgD60VCV+ CMtzrPew
QJUAoJmu03qP9gZ
=Azyr
-----END PGP SIGNATURE-----