[MERGE] Enable merging into PreviewTree

John Arbash Meinel john at arbash-meinel.com
Tue Sep 30 21:36:35 BST 2008


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


...

> usage with other methods, so getting a single entry via
> iter_entries_by_dir is not uncommon.  That said, I'd be happy to make
> Tree.get_inventory_entry a Tree method.
> 
> Aaron

I think it would be great to have something like this. There are a few
cases where we just want a simple member of an inventory entry, like
"IE.revision()" and we end up having to go through
"tree.inventory[file_id].revision".

Certainly WT4 and DirStateRevisionTree can implement it without having
to build the whole Inventory which is very nice for simple probes. I
don't remember exactly when I was running into this in the past, but it
is certainly something that I remember wanting.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjijdMACgkQJdeBCYSNAANmngCdHiv8S/RES/r+bP65irmpKeK1
5PAAnjWdt2ftILpMSBpiCwsReF2Juoyj
=Wfz5
-----END PGP SIGNATURE-----



More information about the bazaar mailing list