~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-28 07:08:27 UTC
  • mfrom: (2553.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070628070827-h5s313dg5tnag9vj
(robertc) Show the names of commit hooks during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from bzrlib import errors
23
23
from bzrlib.bundle.serializer import (BundleSerializer,
24
 
                                      _get_bundle_header,
 
24
                                      BUNDLE_HEADER,
25
25
                                     )
26
26
from bzrlib.bundle.serializer import binary_diff
27
27
from bzrlib.bundle.bundle_data import (RevisionInfo, BundleInfo, BundleTree)
128
128
        finally:
129
129
            source.unlock()
130
130
 
131
 
    def write_bundle(self, repository, target, base, fileobj):
132
 
        return self._write_bundle(repository, target, base, fileobj)
133
 
 
134
131
    def _write_main_header(self):
135
132
        """Write the header for the changes"""
136
133
        f = self.to_file
137
 
        f.write(_get_bundle_header('0.8'))
 
134
        f.write(BUNDLE_HEADER)
 
135
        f.write('0.8\n')
138
136
        f.write('#\n')
139
137
 
140
138
    def _write(self, key, value, indent=1, trailing_space_when_empty=False):