~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to scriptlib.py

  • Committer: Aaron Bentley
  • Date: 2005-05-13 21:01:44 UTC
  • Revision ID: abentley@troll-20050513210144-d5ed15cf2571c77e
Adapted to new ways of checking for clean tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    """
33
33
    old_tree = cur_branch.basis_tree()
34
34
    new_tree = cur_branch.working_tree()
35
 
    for file_state, fid, old_name, new_name, kind in \
36
 
        bzrlib.compare_trees(old_tree, new_tree, want_unchanged=False):
37
 
        if file_state not in ('I', '.'):
 
35
    for path, file_class, kind, file_id in new_tree.list_files():
 
36
        if file_class == 'I':
38
37
            return False
 
38
    delta = bzrlib.compare_trees(old_tree, new_tree, want_unchanged=False)
 
39
    if len(delta.added) > 0 or len(delta.removed) > 0 or len(modified) > 0:
 
40
        return False
39
41
    return True
40
42
 
41
43
def set_pull_data(br, location, rev_id):