/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/builtins.py

  • Committer: Robert Collins
  • Date: 2009-07-16 01:36:57 UTC
  • mto: This revision was merged to the branch mainline in revision 4543.
  • Revision ID: robertc@robertcollins.net-20090716013657-6f1046zvotn9shm3
Change cmd_mv not to take out branch locks. (Robert Collins, bug 216541)

Show diffs side-by-side

added added

removed removed

Lines of Context:
799
799
        if len(names_list) < 2:
800
800
            raise errors.BzrCommandError("missing file argument")
801
801
        tree, rel_names = tree_files(names_list, canonicalize=False)
802
 
        tree.lock_write()
 
802
        tree.lock_tree_write()
803
803
        try:
804
804
            self._run(tree, names_list, rel_names, after)
805
805
        finally:
813
813
            raise errors.BzrCommandError('--after cannot be specified with'
814
814
                                         ' --auto.')
815
815
        work_tree, file_list = tree_files(names_list, default_branch='.')
816
 
        work_tree.lock_write()
 
816
        work_tree.lock_tree_write()
817
817
        try:
818
818
            rename_map.RenameMap.guess_renames(work_tree, dry_run)
819
819
        finally: