~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Aaron Bentley
  • Date: 2008-08-01 04:55:10 UTC
  • mto: (3363.17.4 merge-into)
  • mto: This revision was merged to the branch mainline in revision 3736.
  • Revision ID: aaron@aaronbentley.com-20080801045510-bkud24q1syjvmk00
Change Tree.__contains__ to tolerate subclasssing

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    def has_id(self, file_id):
133
133
        return self.inventory.has_id(file_id)
134
134
 
135
 
    __contains__ = has_id
 
135
    def __contains__(self, file_id):
 
136
        return self.has_id(file_id)
136
137
 
137
138
    def has_or_had_id(self, file_id):
138
139
        if file_id == self.inventory.root.file_id: