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 ...commands import plugin_cmds
25
plugin_cmds.register_lazy(
26
'cmd_check_chk', [], __name__ + '.check_chk')
27
plugin_cmds.register_lazy(
28
'cmd_chk_used_by', [], __name__ + '.chk_used_by')
29
plugin_cmds.register_lazy(
30
'cmd_fetch_all_records', [], __name__ + '.fetch_all_records')
31
plugin_cmds.register_lazy(
32
'cmd_file_refs', [], __name__ + '.file_refs')
33
plugin_cmds.register_lazy(
34
'cmd_fix_missing_keys_for_stacking', [],
35
__name__ + '.missing_keys_for_stacking_fixer')
36
plugin_cmds.register_lazy(
37
'cmd_mirror_revs_into', [],
38
__name__ + '.missing_keys_for_stacking_fixer')
39
plugin_cmds.register_lazy(
40
'cmd_repo_has_key', [], __name__ + '.repo_has_key')
41
plugin_cmds.register_lazy(
42
'cmd_repo_keys', [], __name__ + '.repo_keys')