/breezy/3.1

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/3.1

« 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-02-09 17:46:22 UTC
  • mfrom: (7357.1.8 intertree-find-target-path)
  • Revision ID: breezy.the.bot@gmail.com-20200209174622-7ucfq64y2r6v80wv
Use InterTree object when looking for renames.

Merged from https://code.launchpad.net/~jelmer/brz/intertree-renames/+merge/378777

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    features,
44
44
    test_commit,
45
45
    )
46
 
from ..tree import find_previous_path
 
46
from ..tree import InterTree
47
47
 
48
48
 
49
49
def get_text(vf, key):
562
562
 
563
563
        for path, status, kind, entry in base_files:
564
564
            # Check that the meta information is the same
565
 
            to_path = find_previous_path(base_tree, to_tree, path)
 
565
            to_path = InterTree.get(base_tree, to_tree).find_target_path(path)
566
566
            self.assertEqual(
567
567
                base_tree.get_file_size(path),
568
568
                to_tree.get_file_size(to_path))