~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

Some workingtree_implementations/test_workingtree.py test work - add DirStateRevisionTree.has_filename, locks around appropriate calls in tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
606
606
        """The parents of a tree in the dirstate are not cached."""
607
607
        return self._repository.get_revision(self._revision_id).parent_ids
608
608
 
 
609
    def has_filename(self, filename):
 
610
        return bool(self.inventory.path2id(filename))
 
611
 
609
612
    def lock_read(self):
610
613
        """Lock the tree for a set of operations."""
611
614
        self._locked = True