7
bzrlib.commands.OPTIONS['ignored'] = None
9
class cmd_clean_tree(bzrlib.commands.Command):
10
"""Remove unwanted files from working tree.
11
Normally, ignored files are left alone. The --ignored flag will cause them
12
to be deleted as well.
14
takes_options = ['ignored']
15
def run(self, ignored=False):
17
clean_tree.clean_tree(ignored=ignored)
19
class cmd_conflicted(bzrlib.commands.Command):
20
"""List files that have conflicts
22
takes_options = ['ignored']
23
def run(self, ignored=False):
25
clean_tree.clean_tree(ignored=ignored)
27
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve,
28
shelf.cmd_unshelve, cmd_clean_tree, conflicts.cmd_conflicts]
29
from errors import NoPyBaz
32
commands.append(baz_import.cmd_baz_import)
35
class cmd_baz_import(bzrlib.commands.Command):
36
"""Disabled. (Requires PyBaz)"""
37
commands.append(cmd_baz_import)
39
if hasattr(bzrlib.commands, 'register_command'):
40
for command in commands:
41
bzrlib.commands.register_command(command)