/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: 2019-06-16 02:23:42 UTC
  • mfrom: (7340 work)
  • mto: This revision was merged to the branch mainline in revision 7350.
  • Revision ID: jelmer@jelmer.uk-20190616022342-ihxzayq04x5culzd
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    test_commit,
45
45
    )
46
46
from ..transform import TreeTransform
 
47
from ..tree import find_previous_path
47
48
 
48
49
 
49
50
def get_text(vf, key):
587
588
 
588
589
        for path, status, kind, entry in base_files:
589
590
            # Check that the meta information is the same
 
591
            to_path = find_previous_path(base_tree, to_tree, path)
590
592
            self.assertEqual(
591
593
                base_tree.get_file_size(path),
592
 
                to_tree.get_file_size(to_tree.id2path(entry.file_id)))
 
594
                to_tree.get_file_size(to_path))
593
595
            self.assertEqual(
594
 
                base_tree.get_file_sha1(path, entry.file_id),
595
 
                to_tree.get_file_sha1(to_tree.id2path(entry.file_id)))
 
596
                base_tree.get_file_sha1(path),
 
597
                to_tree.get_file_sha1(to_path))
596
598
            # Check that the contents are the same
597
599
            # This is pretty expensive
598
600
            # self.assertEqual(base_tree.get_file(fileid).read(),