~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

move move() from Branch to WorkingTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
    takes_args = ['source$', 'dest']
280
280
    def run(self, source_list, dest):
281
281
        tree, source_list = tree_files(source_list)
282
 
 
283
282
        # TODO: glob expansion on windows?
284
 
        tree.branch.move(source_list, tree.relpath(dest))
 
283
        tree.move(source_list, tree.relpath(dest))
285
284
 
286
285
 
287
286
class cmd_rename(Command):
326
325
        
327
326
        if os.path.isdir(names_list[-1]):
328
327
            # move into existing directory
329
 
            for pair in tree.branch.move(rel_names[:-1], rel_names[-1]):
 
328
            for pair in tree.move(rel_names[:-1], rel_names[-1]):
330
329
                print "%s => %s" % pair
331
330
        else:
332
331
            if len(names_list) != 2: