~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.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:
1967
1967
                yield self._get_repository().revision_tree(revision_id)
1968
1968
 
1969
1969
    def _get_file_revision(self, file_id, vf, tree_revision):
1970
 
        parent_keys = [(file_id, self._file_revision(t, file_id)) for t in
 
1970
        parent_keys = [(file_id, t.get_file_revision(file_id)) for t in
1971
1971
                       self._iter_parent_trees()]
1972
1972
        vf.add_lines((file_id, tree_revision), parent_keys,
1973
1973
                     self.get_file_lines(file_id))