New format branch broke compatibility
John A Meinel
john at arbash-meinel.com
Fri Sep 30 18:04:57 BST 2005
Gustavo Niemeyer wrote:
> Not sure if it was intentional, but given that Robert just asked
> if it'd be ok to break compatibility for some other reason, I
> decided it'd be worth mentioning.
>
> The last bzr.newformat branch breaks compatibility with previous
> repositories using the new format storage, due to that line
> on branch.py:
>
> self.revision_store = get_store('revision-store', compressed=True)
I don't see that line. I see the line:
self.revision_store = get_store('revision-store', compressed=False)
For version 4 branches, it should get the compressed version of the
store, but for version 5, they are uncompressed.
I'm not sure how it worked for you, but when I upgraded last time, it
created uncompressed text (before the latest changes). You might have
been using an even earlier one that left them compressed.
John
=:->
>
> Revisions used to be compressed, so this will yield the follownig
> error when used in a previous repository:
>
> bzr: ERROR: Branch _Branch('/home/niemeyer/src/bzr.mergelog/repos1')
> has no revision gustavo at niemeyer.net-20050929163758-7163c414d477c5a2
> at /home/niemeyer/src/bzr.mergelog/bzrlib/branch.py line 718, in
> get_revision_xml_file()
> see ~/.bzr.log for debug information
>
> If that's intentional, I don't think it's even necessary to include
> upgrade code. Just mention that
>
> for file in .bzr/revision-store/*.gz; do gunzip $file; done
>
> is necessary.
>
> Cheers!
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050930/46a3d871/attachment.pgp
More information about the bazaar
mailing list