~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-29 04:23:53 UTC
  • Revision ID: mbp@sourcefrog.net-20050829042353-869333d329808a1e
- remove more extraneous print statements from Branch.move

Show diffs side-by-side

added added

removed removed

Lines of Context:
585
585
        
586
586
        if os.path.isdir(names_list[-1]):
587
587
            # move into existing directory
588
 
            b.move(rel_names[:-1], rel_names[-1])
 
588
            for pair in b.move(rel_names[:-1], rel_names[-1]):
 
589
                print "%s => %s" % pair
589
590
        else:
590
591
            if len(names_list) != 2:
591
592
                raise BzrCommandError('to mv multiple files the destination '
592
593
                                      'must be a versioned directory')
593
 
            b.move(rel_names[0], rel_names[1])
 
594
            for pair in b.move(rel_names[0], rel_names[1]):
 
595
                print "%s => %s" % pair
594
596
            
595
597
    
596
598