~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to clean_tree.py

  • Committer: Aaron Bentley
  • Date: 2005-10-18 20:17:59 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051018201759-a5dfcbed504c3d22
Adopted Branch.open_containing's new format

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                yield tree.abspath(subp), subp
38
38
 
39
39
def clean_tree(directory, ignored=False, detrius=False, dry_run=False):
40
 
    br = Branch.open_containing(directory)
 
40
    br = Branch.open_containing(directory)[0]
41
41
    tree = br.working_tree()
42
42
    deletables = iter_deletables(tree, ignored=ignored, detrius=detrius)
43
43
    delete_items(deletables, dry_run=dry_run)