~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

  • Committer: Robert Collins
  • Date: 2005-10-16 08:26:43 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016082643-a2300b765aea49b4
unify __contains__ for TransportStore classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        if '\\' in fileid or '/' in fileid:
210
210
            raise ValueError("invalid store id %r" % fileid)
211
211
 
 
212
    def __contains__(self, fileid):
 
213
        fn = self._relpath(fileid)
 
214
        return self._transport.has(fn)
 
215
 
212
216
    def _get(self, filename):
213
217
        """Return an vanilla file stream for clients to read from.
214
218