[MERGE] Nested trees: CompositeTree

Aaron Bentley aaron at aaronbentley.com
Thu Apr 2 16:48:44 BST 2009


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

Hi all,

This patch implements CompositeTree, which provides a Tree interface
that combines a Tree with its by-reference subtrees.  Upcoming patches
will use CompositeTree to provide nested tree support in commands like
diff and status.

It supports both RevisionTrees and WorkingTrees.  It does not claim to
be a complete Tree implementation-- it is driven by the needs of the
commands it supports.

Second, it implements NestedTrees, which is the native, low-friction
interface to a set of nested trees.  This will become the preferred
interface, especially for commands that perform writes.

It implements CompositeInventory, but I'm hoping our codebase no longer
has a strict requirement for Trees to have inventories, and that we can
eliminate it later.

To an extent, this code is a work-in-progress, but it does pass all
tests, even with the later threads merged in, so I think it's ready for
review.

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

iEYEARECAAYFAknU3lkACgkQ0F+nu1YWqI1hPACdGbpBAC3DWwVfTH9UoBsB8Yd/
rZMAn1B3LSX3SpwokzDoL/JUotlbTj20
=YmkM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: composite-tree-1912.patch
Type: text/x-patch
Size: 158390 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090402/02d78076/attachment-0001.bin 


More information about the bazaar mailing list