~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

Merge from Aaron.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        if file_class in ('?', 'I'):
60
60
            non_source.append(path)
61
61
    delta = compare_trees(old_tree, new_tree, want_unchanged=False)
62
 
    if len(delta.added) > 0 or len(delta.removed) > 0 or \
63
 
        len(delta.modified) > 0:
64
 
        return False, non_source
65
 
    return True, non_source 
 
62
    return not delta.has_changed(), non_source
66
63
 
67
64
def set_pull_data(br, location, rev_id):
68
65
    pull_file = file (br.control_files.controlfilename("x-pull-data"), "wb")