/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Vincent Ladeuil
  • Date: 2010-07-15 13:33:30 UTC
  • mto: This revision was merged to the branch mainline in revision 5347.
  • Revision ID: v.ladeuil+lp@free.fr-20100715133330-u06o1t8rkqf7rmw9
Delete the to_name parameter from WorkingTree.move()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1264
1264
                stack.pop()
1265
1265
 
1266
1266
    @needs_tree_write_lock
1267
 
    def move(self, from_paths, to_dir=None, after=False, **kwargs):
 
1267
    def move(self, from_paths, to_dir=None, after=False):
1268
1268
        """Rename files.
1269
1269
 
1270
1270
        to_dir must exist in the inventory.
1304
1304
 
1305
1305
        # check for deprecated use of signature
1306
1306
        if to_dir is None:
1307
 
            to_dir = kwargs.get('to_name', None)
1308
 
            if to_dir is None:
1309
 
                raise TypeError('You must supply a target directory')
1310
 
            else:
1311
 
                symbol_versioning.warn('The parameter to_name was deprecated'
1312
 
                                       ' in version 0.13. Use to_dir instead',
1313
 
                                       DeprecationWarning)
1314
 
 
 
1307
            raise TypeError('You must supply a target directory')
1315
1308
        # check destination directory
1316
1309
        if isinstance(from_paths, basestring):
1317
1310
            raise ValueError()