~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2005-10-17 23:32:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1462.
  • Revision ID: robertc@robertcollins.net-20051017233206-cbd6059e27bd4e39
Branch.remove has been moved to WorkingTree.

Part of this is providing WorkingTree with locking primitives,
to allow the use of the needs_write_lock decorator.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
487
487
    def run(self, file_list, verbose=False):
488
488
        b = Branch.open_containing(file_list[0])[0]
489
489
        tree = WorkingTree(b.base, b)
490
 
        b.remove([tree.relpath(f) for f in file_list], verbose=verbose)
 
490
        tree.remove([tree.relpath(f) for f in file_list], verbose=verbose)
491
491
 
492
492
 
493
493
class cmd_file_id(Command):