~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-19 12:54:46 UTC
  • mfrom: (5793.2.6 revisiontree-get-revision)
  • Revision ID: pqm@pqm.ubuntu.com-20110419125446-s16r0ck8t1ig6u7n
(jelmer) Add RevisionTree.get_file_revision,
 replacing an existing static method on Tree. 
 This should also make it unnecessary to access the inventory in a couple
 more cases. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
661
661
        path = self.id2path(file_id)
662
662
        if path in self._last_changed:
663
663
            return self._last_changed[path]
664
 
        return self.base_tree.inventory[file_id].revision
 
664
        return self.base_tree.get_file_revision(file_id)
665
665
 
666
666
    def get_size_and_sha1(self, file_id):
667
667
        """Return the size and sha1 hash of the given file id.