~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: abentley
  • Date: 2005-10-14 03:50:50 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051014035050-d779472ccb599a51
semi-broke merge

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):
 
58
    def has_id(self, file_id, allow_root=False):
 
59
        if allow_root and file_id == self.inventory.root.file_id:
 
60
            return True
59
61
        return self.inventory.has_id(file_id)
60
62
 
61
63
    __contains__ = has_id