~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-12 00:16:45 UTC
  • mto: (1185.11.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050712001644-c6b0db8464b1ef3e
Updated CompressedTextStore to use copy_to when possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
        # then queue up 11-20, copy 11-20
111
111
        # or to queue up 1-10, copy 1, queue 11, copy 2, etc?
112
112
        # sort of pipeline versus batch.
 
113
 
 
114
        # We can't use self._transport.copy_to because we don't know
 
115
        # whether the local tree is in the same format as other
113
116
        def buffer_requests():
114
117
            count = 0
115
118
            buffered_requests = []
221
224
        # we don't need to process the files.
222
225
 
223
226
        paths = [self._relpath(fileid) for fileid in to_copy]
224
 
        count = self._transport.put_multi(
225
 
                zip(paths, other._transport.get_multi(paths, pb=pb)))
 
227
        count = other._transport.copy_to(paths, self._transport, pb=pb)
226
228
        assert count == len(to_copy)
227
229
        pb.clear()
228
230
        return count