~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-17 23:06:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5803.
  • Revision ID: jelmer@samba.org-20110417230622-e52xsel9m0t0umcf
Add a RevisionTree.get_file_revision() method.

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.