~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-07-17 19:05:46 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060717190546-11b67e418c7c3241
Allow completion on executables, fix broken prompt code

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
61
62
    old_tree = cur_tree.basis_tree()
62
63
    new_tree = cur_tree
63
64
    non_source = []
64
65
    for path, file_class, kind, file_id, entry in new_tree.list_files():
65
66
        if file_class in ('?', 'I'):
66
67
            non_source.append(path)
67
 
    delta = new_tree.changes_from(old_tree, want_unchanged=False)
 
68
    delta = compare_trees(old_tree, new_tree, want_unchanged=False)
68
69
    return not delta.has_changed(), non_source
69
70
 
70
71
def set_push_data(tree, location):