10
10
from bzrlib.option import Option
11
11
sys.path.append(os.path.dirname(__file__))
13
Option.OPTIONS['ignored'] = Option('ignored')
14
Option.OPTIONS['detrius'] = Option('detrius')
15
Option.OPTIONS['dry-run'] = Option('dry-run')
13
Option.OPTIONS['ignored'] = Option('ignored',
14
help='delete all ignored files.')
15
Option.OPTIONS['detrius'] = Option('detrius',
16
help='delete conflict files merge backups, and failed selftest dirs.' +
17
'(*.THIS, *.BASE, *.OTHER, *~, *.tmp')
18
Option.OPTIONS['dry-run'] = Option('dry-run',
19
help='show files to delete instead of deleting them.')
17
21
class cmd_clean_tree(bzrlib.commands.Command):
18
22
"""Remove unwanted files from working tree.
19
23
Normally, ignored files are left alone.
22
--detrius Delete conflict files merge backups, and failed selftest dirs.
23
(*.THIS, *.BASE, *.OTHER, *~, *.tmp)
24
--ignored Delete all ignored files.
25
--dry-run Show files to delete instead of deleting them.
27
25
takes_options = ['ignored', 'detrius', 'dry-run']
28
26
def run(self, ignored=False, detrius=False, dry_run=False):