[Pkg-bazaar-commits] ./bzr/unstable r820: - faster Branch.get_revision_inventory now we know the ids are the same
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:21:08 UTC 2009
------------------------------------------------------------
revno: 820
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-07-04 22:28:33 +1000
message:
- faster Branch.get_revision_inventory now we know the ids are the same
modified:
bzrlib/branch.py
-------------- next part --------------
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2005-07-04 08:06:51 +0000
+++ b/bzrlib/branch.py 2005-07-04 12:28:33 +0000
@@ -607,11 +607,13 @@
def get_revision_inventory(self, revision_id):
"""Return inventory of a past revision."""
+ # bzr 0.0.6 imposes the constraint that the inventory_id
+ # must be the same as its revision, so this is trivial.
if revision_id == None:
from bzrlib.inventory import Inventory
return Inventory()
else:
- return self.get_inventory(self.get_revision(revision_id).inventory_id)
+ return self.get_inventory(revision_id)
def revision_history(self):
More information about the Pkg-bazaar-commits
mailing list