~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-15 03:20:52 UTC
  • mfrom: (4007.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20090215032052-9749wepsy6dgnq9l
(Jelmer) Use Repository.get_revision_delta() in 'bzr missing -v'
        rather than doing the delta locally. (#315048)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            revno, rev_id, merge_depth = rev
38
38
        rev = revision_source.get_revision(rev_id)
39
39
        if verbose:
40
 
            remote_tree = revision_source.revision_tree(rev_id)
41
 
            parent_rev_id = rev.parent_ids[0]
42
 
            if last_rev_id == parent_rev_id:
43
 
                parent_tree = last_tree
44
 
            else:
45
 
                parent_tree = revision_source.revision_tree(parent_rev_id)
46
 
            revision_tree = revision_source.revision_tree(rev_id)
47
 
            last_rev_id = rev_id
48
 
            last_tree = revision_tree
49
 
            delta = revision_tree.changes_from(parent_tree)
 
40
            delta = revision_source.get_revision_delta(rev_id)
50
41
        else:
51
42
            delta = None
52
43
        yield log.LogRevision(rev, revno, merge_depth, delta=delta)