~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-12 07:17:28 UTC
  • mto: (1185.11.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050712071728-ab7234b176ee64ed
Moving the multi-get functionality higher up into the Branch class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        """Does the target location exist?"""
170
170
        raise NotImplementedError
171
171
 
172
 
    def has_multi(self, relpaths):
 
172
    def has_multi(self, relpaths, pb=None):
173
173
        """Return True/False for each entry in relpaths"""
174
174
        total = self._get_total(relpaths)
175
175
        count = 0
176
176
        for relpath in relpaths:
177
 
            self._update_pb(pb, 'get', count, total)
 
177
            self._update_pb(pb, 'has', count, total)
178
178
            yield self.has(relpath)
179
179
            count += 1
180
180