~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-19 20:32:38 UTC
  • mfrom: (1786.1.43 http)
  • Revision ID: pqm@pqm.ubuntu.com-20060719203238-892f369155dca5dc
(jam, mpee, jrydberg) update http with keep-alive and multi-range requests. http operations 2-4x faster

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        
308
308
        Note that some transports MAY allow querying on directories, but this
309
309
        is not part of the protocol.  In other words, the results of 
310
 
        t.has("a_directory_name") are undefined."
 
310
        t.has("a_directory_name") are undefined.
311
311
        """
312
312
        raise NotImplementedError(self.has)
313
313
 
376
376
            if not combined_offsets:
377
377
                combined_offsets = [[offset, size]]
378
378
            else:
379
 
                if (len (combined_offsets) < 50 and
 
379
                if (len(combined_offsets) < 50 and
380
380
                    combined_offsets[-1][0] + combined_offsets[-1][1] == offset):
381
381
                    # combatible offset:
382
382
                    combined_offsets.append([offset, size])