1
# Copyright (C) 2011 Canonical Ltd
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
"""Some commands for debugging and repairing bzr repositories.
19
Some of these commands may be good candidates for adding to bzr itself, perhaps
23
from __future__ import absolute_import
25
from ...commands import plugin_cmds
29
from unittest import TestSuite
30
from .tests import test_suite
32
result.addTest(test_suite())
36
plugin_cmds.register_lazy(
37
'cmd_check_chk', [], __name__ + '.check_chk')
38
plugin_cmds.register_lazy(
39
'cmd_chk_used_by', [], __name__ + '.chk_used_by')
40
plugin_cmds.register_lazy(
41
'cmd_fetch_all_records', [], __name__ + '.fetch_all_records')
42
plugin_cmds.register_lazy(
43
'cmd_file_refs', [], __name__ + '.file_refs')
44
plugin_cmds.register_lazy(
45
'cmd_fix_missing_keys_for_stacking', [],
46
__name__ + '.missing_keys_for_stacking_fixer')
47
plugin_cmds.register_lazy(
48
'cmd_mirror_revs_into', [],
49
__name__ + '.missing_keys_for_stacking_fixer')
50
plugin_cmds.register_lazy(
51
'cmd_repo_has_key', [], __name__ + '.repo_has_key')
52
plugin_cmds.register_lazy(
53
'cmd_repo_keys', [], __name__ + '.repo_keys')