/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-30 17:16:39 UTC
  • mfrom: (7467.2.2 inventory-chunks)
  • Revision ID: breezy.the.bot@gmail.com-20200130171639-vowlb6hh2x9qe3un
Use chunks rather than fulltexts for inventories where possible.

Merged from https://code.launchpad.net/~jelmer/brz/inventory-chunks/+merge/378341

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):