~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/v4.py

  • Committer: Aaron Bentley
  • Date: 2007-06-21 19:10:28 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070621191028-9yy1ye6jneejm1ht
Rename format to 4alpha

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        self._base64_buffer = ''
29
29
 
30
30
    def begin(self):
31
 
        self._fileobj.write(serializer._get_bundle_header('1.0alpha'))
 
31
        self._fileobj.write(serializer._get_bundle_header('4alpha'))
32
32
        self._fileobj.write('#\n')
33
33
        self._container.begin()
34
34
 
113
113
            yield (bytes(None), metadata) + self.decode_name(name)
114
114
 
115
115
 
116
 
class BundleSerializerV10(serializer.BundleSerializer):
 
116
class BundleSerializerV4(serializer.BundleSerializer):
117
117
 
118
118
    def write(self, repository, revision_ids, forced_bases, fileobj):
119
119
        write_op = BundleWriteOperation.from_old_args(repository, revision_ids,
125
125
        return write_op.do_write()
126
126
 
127
127
    def read(self, file):
128
 
        bundle = BundleInfoV10(file, self)
 
128
        bundle = BundleInfoV4(file, self)
129
129
        return bundle
130
130
 
131
131
 
253
253
                                               revision_id, file_id)
254
254
 
255
255
 
256
 
class BundleInfoV10(object):
 
256
class BundleInfoV4(object):
257
257
 
258
258
    def __init__(self, fileobj, serializer):
259
259
        self._fileobj = fileobj