2
Various useful plugins for working with bzr.
10
bzrlib.commands.OPTIONS['ignored'] = None
12
class cmd_clean_tree(bzrlib.commands.Command):
13
"""Remove unwanted files from working tree.
14
Normally, ignored files are left alone. The --ignored flag will cause them
15
to be deleted as well.
17
takes_options = ['ignored']
18
def run(self, ignored=False):
20
clean_tree.clean_tree(ignored=ignored)
22
class cmd_conflicted(bzrlib.commands.Command):
23
"""List files that have conflicts
25
takes_options = ['ignored']
26
def run(self, ignored=False):
28
clean_tree.clean_tree(ignored=ignored)
30
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve,
31
shelf.cmd_unshelve, cmd_clean_tree, conflicts.cmd_conflicts,
32
conflicts.cmd_resolve]
33
from errors import NoPyBaz
36
commands.append(baz_import.cmd_baz_import)
39
class cmd_baz_import(bzrlib.commands.Command):
40
"""Disabled. (Requires PyBaz)"""
41
commands.append(cmd_baz_import)
43
if hasattr(bzrlib.commands, 'register_command'):
44
for command in commands:
45
bzrlib.commands.register_command(command)