~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

David Clymers patch to use rename rather than mv for two argument non-directory target bzr mv calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
            if len(names_list) != 2:
273
273
                raise BzrCommandError('to mv multiple files the destination '
274
274
                                      'must be a versioned directory')
275
 
            for pair in b.move(rel_names[0], rel_names[1]):
276
 
                print "%s => %s" % pair
 
275
            b.rename_one(rel_names[0], rel_names[1])
 
276
            print "%s => %s" % (rel_names[0], rel_names[1])
277
277
            
278
278
    
279
279