[RFC] Knit format 2
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Aug 25 23:55:22 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
This patch implements a new repository format that stores all the
information about the tree root that it stores about other directories.
As a consequence, it also implements a new Inventory format (format 6)
which stores the root entry as a <directory /> element.
Since tree.basis_tree() ==
tree.branch.repository.revision_tree(tree.last_revision), this patch
changes the basis inventory to use format 6. This seems reasonable,
since it is only a cache. But since current implementations will not
gracefully tolerate any format other than format 5, it uses the new name
'basis-inventory-cache'. That way, old clients will simply not see it.
The flag --format=experimental-knit2 can be supplied to init, upgrade,
init-repo, etc. Any of our current formats can be converted into knit2,
but knit2 cannot be converted into any of our current formats, because
it contains extra information (its raison d'etre), and that information
would be lost by such conversion.
I have tested bzr with this as the default format, and all tests except
bundle tests pass. Those tests that didn't pass at first were usually
added to the repository_implementations tests, to ensure that all
formats are adequately tested.
I believe this can be merged at this stage, barring any quibbles with
the implementation. Though probably not for 1.0. :-)
Remaining work is:
- a new bundle format
- a new testament format
- optimizing the converters
Thoughts?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE73/a0F+nu1YWqI0RAtU+AJ45MevnrbOgWQdOGdZTbEsDxpPCWQCeK6p4
PxgXkPnSzAdwBmbd2ABFBk0=
=gyaw
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knit2.patch
Type: text/x-patch
Size: 68458 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060825/3f31a9a2/attachment.bin
More information about the bazaar
mailing list