/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-08-12 15:45:35 UTC
  • Revision ID: mbp@sourcefrog.net-20050812154535-8add210e3e4a2464
- add new Branch.get_inventory_xml() method

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
        from bzrlib.inventory import Inventory
661
661
        from bzrlib.xml import unpack_xml
662
662
 
663
 
        return unpack_xml(Inventory, self.inventory_store[inventory_id])
 
663
        return unpack_xml(Inventory, self.get_inventory_xml(inventory_id))
 
664
 
 
665
 
 
666
    def get_inventory_xml(self, inventory_id):
 
667
        """Get inventory XML as a file object."""
 
668
        return self.inventory_store[inventory_id]
664
669
            
665
670
 
666
671
    def get_inventory_sha1(self, inventory_id):
667
672
        """Return the sha1 hash of the inventory entry
668
673
        """
669
 
        return sha_file(self.inventory_store[inventory_id])
 
674
        return sha_file(self.get_inventory_xml(inventory_id))
670
675
 
671
676
 
672
677
    def get_revision_inventory(self, revision_id):