~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to clean_tree.py

  • Committer: Robert Collins
  • Date: 2005-10-19 05:10:17 UTC
  • mto: (147.4.12) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20051019051017-efc450ed39cfbaac
updates for bzr api changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
def clean_tree(directory, ignored=False, detrius=False, dry_run=False,
41
41
               to_file=sys.stdout):
42
 
    br = Branch.open_containing(directory)
 
42
    br = Branch.open_containing(directory)[0]
43
43
    tree = br.working_tree()
44
44
    deletables = iter_deletables(tree, ignored=ignored, detrius=detrius)
45
45
    delete_items(deletables, dry_run=dry_run, to_file=to_file)