29
29
class cmd_clean_tree(bzrlib.commands.Command):
30
30
"""Remove unwanted files from working tree.
31
Normally, ignored files are left alone.
32
By default, only unknown files, not ignored files, are deleted. Versioned
33
files are never deleted.
35
Another class is 'detritus', which includes files emitted by bzr during
36
normal operations and selftests. (The value of these files decreases with
39
If no options are specified, unknown files are deleted. Otherwise, option
40
flags are respected, and may be combined.
42
To check what clean-tree will do, use --dry-run.
33
44
takes_options = [Option('ignored', help='delete all ignored files.'),
34
Option('detritus', help='delete conflict files merge'
35
' backups, and failed selftest dirs. (*.THIS, '
36
'*.BASE, *.OTHER, *~, *.tmp)'),
45
Option('detritus', help='delete conflict files, merge'
46
' backups, and failed selftest dirs.'),
38
48
help='delete files unknown to bzr. (default)'),
39
49
Option('dry-run', help='show files to delete instead of'