~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Remove all uses of compare_trees and replace with Tree.changes_from throughout bzrlib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
876
876
                raise BzrCommandError('Specify one or more files to remove, or'
877
877
                                      ' use --new.')
878
878
        else:
879
 
            from bzrlib.delta import compare_trees
880
 
            added = [compare_trees(tree.basis_tree(), tree,
881
 
                                   specific_files=file_list).added]
882
 
            file_list = sorted([f[0] for f in added[0]], reverse=True)
 
879
            added = tree.changes_from(tree.basis_tree(),
 
880
                specific_files=file_list).added
 
881
            file_list = sorted([f[0] for f in added], reverse=True)
883
882
            if len(file_list) == 0:
884
883
                raise BzrCommandError('No matching files.')
885
884
        tree.remove(file_list, verbose=verbose, to_file=self.outf)
1227
1226
    hidden = True
1228
1227
    @display_command
1229
1228
    def run(self):
1230
 
        from bzrlib.delta import compare_trees
1231
 
 
1232
1229
        tree = WorkingTree.open_containing(u'.')[0]
1233
 
        td = compare_trees(tree.basis_tree(), tree)
1234
 
 
 
1230
        td = tree.changes_from(tree.basis_tree())
1235
1231
        for path, id, kind, text_modified, meta_modified in td.modified:
1236
1232
            self.outf.write(path + '\n')
1237
1233