At http://bazaar.launchpad.net/%7Evila/bzr/chk-repo
------------------------------------------------------------
revno: 3754
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Vincent Ladeuil <[EMAIL PROTECTED]>
branch nick: cmd-inventory
timestamp: Thu 2008-10-30 16:15:15 +0100
message:
Add missing method entries()
* inventory.py:
(CHKInventory.entries): Needed by cmd_inventory.when querying
revisions other than tip.
=== modified file 'bzrlib/inventory.py'
--- a/bzrlib/inventory.py 2008-10-22 06:40:59 +0000
+++ b/bzrlib/inventory.py 2008-10-30 15:15:15 +0000
@@ -1524,6 +1524,12 @@
"""Get the root entry."""
return self[self.root_id]
+ def entries(self):
+ """Return list of (path, ie) for all entries except the root."""
+ all = list(self.iter_entries())
+ # pop root
+ return all[1:]
+
class CHKInventoryDirectory(InventoryDirectory):
"""A directory in an inventory."""
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits