/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/git/fetch.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:
55
55
from ..bzr.testament import (
56
56
    StrictTestament3,
57
57
    )
58
 
from ..tree import find_previous_path
 
58
from ..tree import InterTree
59
59
from ..tsort import (
60
60
    topo_sort,
61
61
    )
126
126
    # Check what revision we should store
127
127
    parent_keys = []
128
128
    for ptree in parent_bzr_trees:
 
129
        intertree = InterTree.get(ptree, base_bzr_tree)
129
130
        try:
130
 
            ppath = find_previous_path(base_bzr_tree, ptree, decoded_path, recurse='none')
 
131
            ppath = intertree.find_source_paths(decoded_path, recurse='none')
131
132
        except errors.NoSuchFile:
132
133
            continue
133
134
        if ppath is None: