[MERGE] slightly better error when detecting gzip corruption
John Arbash Meinel
john at arbash-meinel.com
Fri Mar 9 22:18:54 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A while back we had someone who started getting some disk corruption of
their Knit files. This showed up as just getting
bzr: ERROR: Not a gzipped file
Which wasn't really helpful, because it couldn't pinpoint where the
actual error was (what knit file, what version, etc.)
I had a version of this patch lying around as part of trying to debug
it. So I figured I'd clean it up, add some tests, and submit it.
Also it changes an integrity check from being an 'assert' to being a
real if (): raise. Since the assert won't be checked if someone uses the
- -O flag.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF8d1OJdeBCYSNAAMRAkcPAKC8gKJ3hC4X4JGeEnpxpWsQ8t6aNwCeJefs
qAghW+meuKtEZMFFMgJfNjg=
=aZTS
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knit_corrupt.patch
Type: text/x-patch
Size: 20599 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070309/909224d7/attachment-0001.bin
More information about the bazaar
mailing list