~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/text.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:
44
44
    def _add(self, fn, f):
45
45
        self._transport.put(fn, f)
46
46
 
47
 
    def __contains__(self, fileid):
48
 
        """"""
49
 
        fn = self._relpath(fileid)
50
 
        return self._transport.has(fn)
51
 
 
52
47
    def has(self, fileids, pb=None):
53
48
        """Return True/False for each entry in fileids.
54
49