~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-11-22 13:08:43 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20061122130843-4eaenjjvsrkk564v
Get encoding working

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):