/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Robert Collins
  • Date: 2008-02-05 22:07:57 UTC
  • mto: This revision was merged to the branch mainline in revision 3216.
  • Revision ID: robertc@robertcollins.net-20080205220757-p2j8klf0hwhzaim4
Change RemoteRepository.get_parent_map to use bz2 not gzip for compression.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Server-side repository related request implmentations."""
18
18
 
 
19
import bz2
19
20
from cStringIO import StringIO
20
21
import os
21
22
import sys
31
32
    SuccessfulSmartServerResponse,
32
33
    )
33
34
from bzrlib import revision as _mod_revision
34
 
from bzrlib.tuned_gzip import GzipFile, bytes_to_gzip
35
35
 
36
36
 
37
37
class SmartServerRepositoryRequest(SmartServerRequest):
169
169
            lines.append(' '.join((revision, ) + tuple(parents)))
170
170
 
171
171
        return SuccessfulSmartServerResponse(
172
 
            ('ok', ), bytes_to_gzip('\n'.join(lines)))
 
172
            ('ok', ), bz2.compress('\n'.join(lines)))
173
173
 
174
174
 
175
175
class SmartServerRepositoryGetRevisionGraph(SmartServerRepositoryRequest):