/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 breezy/bundle/serializer/v09.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from __future__ import absolute_import
18
18
 
19
 
from . import _get_bundle_header
20
 
from .v08 import BundleSerializerV08, BundleReader
21
 
from ..bundle_data import BundleInfo
22
 
 
23
 
from ...testament import StrictTestament3
 
19
from breezy.bundle.serializer import _get_bundle_header
 
20
from breezy.bundle.serializer.v08 import BundleSerializerV08, BundleReader
 
21
from breezy.testament import StrictTestament3
 
22
from breezy.bundle.bundle_data import BundleInfo
24
23
 
25
24
 
26
25
"""Serializer for bundle format 0.9"""
41
40
    def _write_main_header(self):
42
41
        """Write the header for the changes"""
43
42
        f = self.to_file
44
 
        f.write(_get_bundle_header('0.9') + b'#\n')
 
43
        f.write(_get_bundle_header('0.9') + '#\n')
45
44
 
46
45
    def _testament_sha1(self, revision_id):
47
46
        return StrictTestament3.from_revision(self.source,
66
65
        testament = StrictTestament3.from_revision(repository, revision_id)
67
66
        return testament.as_sha1()
68
67
 
69
 
    def _testament(self, revision, tree):
70
 
        return StrictTestament3(revision, tree)
 
68
    def _testament_sha1(self, revision, tree):
 
69
        return StrictTestament3(revision, tree).as_sha1()
71
70
 
72
71
 
73
72
class BundleReaderV09(BundleReader):