~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Aaron Bentley
  • Date: 2007-01-12 04:48:18 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070112044818-nnw6iunriqq073qc
Implement tree comparison for tree references

Show diffs side-by-side

added added

removed removed

Lines of Context:
840
840
    def _read_tree_state(self, path, work_tree):
841
841
        """Populate fields in the inventory entry from the given tree.
842
842
        """
843
 
        subtree = workingtree.WorkingTree.open(work_tree.abspath(path))
844
 
        self.reference_revision = subtree.last_revision()
 
843
        self.reference_revision = work_tree.get_reference_revision(self, path)
845
844
 
846
845
    def _forget_tree_state(self):
847
846
        self.reference_revision = None