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