~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-09 14:43:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: john@arbash-meinel.com-20060809144327-d604af2edf646794
Clean up and write tests for permissions. Now we use fstat which should be cheap, and lets us check the permissions and the file size

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