/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/tests/test_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2020-01-30 20:22:54 UTC
  • mfrom: (7474 work)
  • mto: (7490.40.19 work)
  • mto: This revision was merged to the branch mainline in revision 7516.
  • Revision ID: jelmer@jelmer.uk-20200130202254-3sxihsmeic9olif5
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1036
1036
        bundle = read_bundle(self.create_bundle_text(b'null:', b'rev2')[0])
1037
1037
        repo = self.make_repository('repo', format='dirstate-with-subtree')
1038
1038
        bundle.install_revisions(repo)
1039
 
        inv_text = repo._get_inventory_xml(b'rev2')
 
1039
        inv_text = b''.join(repo._get_inventory_xml(b'rev2'))
1040
1040
        self.assertNotContainsRe(inv_text, b'format="5"')
1041
1041
        self.assertContainsRe(inv_text, b'format="7"')
1042
1042
 
1063
1063
    def test_inv_hash_across_serializers(self):
1064
1064
        repo = self.make_repo_with_installed_revisions()
1065
1065
        recorded_inv_sha1 = repo.get_revision(b'rev2').inventory_sha1
1066
 
        xml = repo._get_inventory_xml(b'rev2')
 
1066
        xml = b''.join(repo._get_inventory_xml(b'rev2'))
1067
1067
        self.assertEqual(osutils.sha_string(xml), recorded_inv_sha1)
1068
1068
 
1069
1069
    def test_across_models_incompatible(self):