/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/log.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:
89
89
    range,
90
90
    zip,
91
91
    )
92
 
from .tree import find_previous_path
 
92
from .tree import InterTree
93
93
 
94
94
 
95
95
def find_touching_revisions(repository, last_revision, last_tree, last_path):
109
109
    revno = len(history)
110
110
    for revision_id in history:
111
111
        this_tree = repository.revision_tree(revision_id)
112
 
        this_path = find_previous_path(last_tree, this_tree, last_path)
 
112
        this_intertree = InterTree.get(this_tree, last_tree)
 
113
        this_path = this_intertree.find_source_path(last_path)
113
114
 
114
115
        # now we know how it was last time, and how it is in this revision.
115
116
        # are those two states effectively the same or not?