~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

Merge Tree.changes_from work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
 
6
6
def iter_log_data(revisions, revision_source, verbose):
7
 
    from bzrlib.diff import compare_trees
8
 
    from bzrlib.tree import EmptyTree
9
 
    last_tree = EmptyTree
 
7
    last_tree = revision_source.revision_tree(None)
10
8
    last_rev_id = None
11
9
    for revno, rev_id in revisions:
12
10
        rev = revision_source.get_revision(rev_id)
20
18
            revision_tree = revision_source.revision_tree(rev_id)
21
19
            last_rev_id = rev_id
22
20
            last_tree = revision_tree
23
 
            delta = compare_trees(revision_tree, parent_tree)
 
21
            delta = parent_tree.changes_from(revision_tree)
24
22
        else:
25
23
            delta = None
26
24
        yield revno, rev, delta