~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-08-09 17:16:46 UTC
  • mfrom: (423.1.7 bzrtools)
  • Revision ID: abentley@panoramicfeedback.com-20060809171646-317f34d7ab1da7fe
Merge from other bzrtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    (True, [])
59
59
    >>> rm_tree(tree)
60
60
    """
61
 
    from bzrlib.diff import compare_trees
62
61
    old_tree = cur_tree.basis_tree()
63
62
    new_tree = cur_tree
64
63
    non_source = []
65
64
    for path, file_class, kind, file_id, entry in new_tree.list_files():
66
65
        if file_class in ('?', 'I'):
67
66
            non_source.append(path)
68
 
    delta = compare_trees(old_tree, new_tree, want_unchanged=False)
 
67
    delta = new_tree.changes_from(old_tree, want_unchanged=False)
69
68
    return not delta.has_changed(), non_source
70
69
 
71
70
def set_push_data(tree, location):