RFC: deprecate 'root' on inventory.

Robert Collins robertc at robertcollins.net
Thu Oct 2 03:25:15 BST 2008


Currently, the root entry in an inventory is a little odd - its the only
entry addressable by name. I'd like to remove it, and instead have just 
'root_id' instead.

So code that does 'inv.root.file_id' would do 'inv.root_id', and code
that actually needs the root entry specifically would do
inv[inv.root_id]. 

This seems to fit better with demand loading inventories.

Thoughts?

-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/20081002/cf6ab01b/attachment.pgp 


More information about the bazaar mailing list