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