43
43
yield tree.abspath(subp), subp
46
def clean_tree(directory, ignored=False, detritus=False, dry_run=False):
46
def clean_tree(directory, unknown=False, ignored=False, detritus=False,
47
48
"""Remove files in the specified classes from the tree"""
48
49
tree = WorkingTree.open_containing(directory)[0]
50
deletables = iter_deletables(tree, unknown=unknown, ignored=ignored,
50
52
delete_items(deletables, dry_run=dry_run)