[BUG][0.12] 'bzr init' creates branches incompatibile with bzr-0.11

Aaron Bentley aaron.bentley at utoronto.ca
Tue Oct 17 13:52:57 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> On 17 Oct 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
>> Because of this bug in bzr-0.11, it seems we need to only create trees
>> with unique roots after we bump the disk formats for working tree and
>> repository. We already have RepositoryKnit2 almost ready to go, we just
>> need to update WorkingTree as well (WorkingTree4, in essence, just
>> changes the .bzr/checkout/inventory to be a format=6 inventory).
> 
> Just to digress a little on the general approach to formats: the general
> rule is that we should only write into a version X object the same data
> that would have been written by previous releases that also handled
> version X.  Otherwise it's just too hard to be sure that things we've
> written out can actually be read back safely, without getting into
> fairly complicated testing of data between different versions.

Mea culpa.  What's nasty here is that the Format5 inventory format and
bzr API *appear* to support unique roots.  I thought that bzr had
permitted unique roots ever since John's original unique-root work.

>> This should keep bzr-0.12 from creating new branches that bzr-0.11
>> cannot handle.
> 
> +1 from me, though I would really like to get input from Aaron since
> this is his area.  However, I do take your point that people can create
> difficult repositories this way so if you want to fix it first and talk
> about it later it's ok with me.

I haven't had a chance to analyse this, but if we need to do it, we
should do it.  I'll follow up later, but I doubt John's analysis is wrong.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFNNIp0F+nu1YWqI0RAmKVAJ0T9tQLTAmgYLxdJErhN9GZVCG/WwCePfgC
hBKTR7/t0yE/hn1bcEpxFEA=
=vpWm
-----END PGP SIGNATURE-----




More information about the bazaar mailing list