~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:29:16 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016082916-dae075fdf18af47e
unify has() implementations 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 has(self, fileids, pb=None):
48
 
        """Return True/False for each entry in fileids.
49
 
 
50
 
        :param fileids: A List or generator yielding file ids.
51
 
        :return: A generator or list returning True/False for each entry.
52
 
        """
53
 
        relpaths = (self._relpath(fid) for fid in fileids)
54
 
        return self._transport.has_multi(relpaths, pb=pb)
 
47
    def _get(self, fn):
 
48
        return self._transport.get(fn)
55
49
 
56
50
    def __iter__(self):
57
51
        for relpath, st in self._iter_relpaths():