~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-07-04 12:28:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050704122833-540285b8ba8158ed
- faster Branch.get_revision_inventory now we know the ids are the same

Show diffs side-by-side

added added

removed removed

Lines of Context:
607
607
 
608
608
    def get_revision_inventory(self, revision_id):
609
609
        """Return inventory of a past revision."""
 
610
        # bzr 0.0.6 imposes the constraint that the inventory_id
 
611
        # must be the same as its revision, so this is trivial.
610
612
        if revision_id == None:
611
613
            from bzrlib.inventory import Inventory
612
614
            return Inventory()
613
615
        else:
614
 
            return self.get_inventory(self.get_revision(revision_id).inventory_id)
 
616
            return self.get_inventory(revision_id)
615
617
 
616
618
 
617
619
    def revision_history(self):