~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: abentley
  • Date: 2005-10-14 04:32:24 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051014043224-347635f0e1fbc673
Propogated has_or_had_id to Tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        """True if the tree has given filename."""
56
56
        raise NotImplementedError()
57
57
 
58
 
    def has_id(self, file_id, allow_root=False):
59
 
        if allow_root and file_id == self.inventory.root.file_id:
 
58
    def has_id(self, file_id):
 
59
        return self.inventory.has_id(file_id)
 
60
 
 
61
    def has_or_had_id(self, file_id):
 
62
        if file_id == self.inventory.root.file_id:
60
63
            return True
61
64
        return self.inventory.has_id(file_id)
62
65