18
18
Various useful commands for working with bzr.
21
from bzrlib import ignores, option
21
from bzrlib import ignores
22
22
from bzrlib.commands import plugin_cmds
23
23
from version import version_info, __version__
53
52
plugin_cmds.register_lazy(cmd_name, aliases,
54
53
'bzrlib.plugins.bzrtools.command_classes')
57
55
plugin_cmds.register_lazy('cmd_heads', [], 'bzrlib.plugins.bzrtools.heads')
60
option.diff_writer_registry.register_lazy(
61
'auto-color', 'bzrlib.plugins.bzrtools.colordiff', 'auto_diff_writer',
62
'Colorized diffs, if supported',
64
option.diff_writer_registry.register_lazy(
65
'color', 'bzrlib.plugins.bzrtools.colordiff', 'DiffWriter',
68
option.diff_writer_registry.default_key = 'auto-color'
72
58
from bzrlib.tests.TestUtil import TestLoader
74
60
from doctest import DocTestSuite, ELLIPSIS
75
61
from unittest import TestSuite
63
import tests.clean_tree
77
64
import tests.test_dotgraph
78
65
import tests.is_clean
79
66
import tests.test_cbranch
80
import tests.test_conflict_diff
81
from bzrlib.plugins.bzrtools.tests import test_fetch_ghosts
82
67
import tests.test_link_tree
83
68
import tests.test_patch
84
69
import tests.test_rspush
85
import tests.test_mirror
86
70
import tests.upstream_import
88
72
import tests.blackbox
89
73
import tests.shelf_tests
90
74
result = TestSuite()
91
75
result.addTest(DocTestSuite(bzrtools, optionflags=ELLIPSIS))
76
result.addTest(tests.clean_tree.test_suite())
92
77
result.addTest(tests.test_suite())
93
78
result.addTest(TestLoader().loadTestsFromModule(tests.shelf_tests))
94
79
result.addTest(tests.blackbox.test_suite())
96
81
result.addTest(zap.test_suite())
97
82
result.addTest(TestLoader().loadTestsFromModule(tests.test_dotgraph))
98
83
result.addTest(TestLoader().loadTestsFromModule(tests.is_clean))
99
result.addTest(TestLoader().loadTestsFromModule(test_fetch_ghosts))
100
84
result.addTest(TestLoader().loadTestsFromModule(tests.test_link_tree))
101
85
result.addTest(TestLoader().loadTestsFromModule(tests.test_patch))
102
86
result.addTest(TestLoader().loadTestsFromModule(tests.test_rspush))
103
87
result.addTest(TestLoader().loadTestsFromModule(tests.test_cbranch))
104
result.addTest(TestLoader().loadTestsFromModule(tests.test_conflict_diff))
105
result.addTest(TestLoader().loadTestsFromModule(tests.test_mirror))