[MERGE] Enable merging PreviewTrees
Robert Collins
robertc at robertcollins.net
Thu Oct 9 04:46:12 BST 2008
On Wed, 2008-10-08 at 23:11 -0400, Aaron Bentley wrote:
>
>
> This patch adds support for merging PreviewTrees into other trees.
> This
> means changing some methods to avoid using Tree.inventory, which
> PreviewTree does not supply.
>
> In the process, it introduces Tree.get_inventory_entry, which provides
> a
> convenient way of getting single inventory entries, without actually
> using Tree.inventory or Tree.iter_entries_by_dir. This is a new
> requirement for Tree implementors, but Tree provides a default for
> subclasses.
I don't understand why this is preferred to accessing the inventory :-
this new method is asking for and returning an inventory entry object;
the natural home for that appears to be on the inventory object itself.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081009/e796bbbe/attachment.pgp
More information about the bazaar
mailing list