/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
1
# Copyright (C) 2011 Canonical Ltd
2
#
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.
7
#
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.
12
#
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
16
0.198.3 by Andrew Bennetts
Docstring tweak.
17
"""Some commands for debugging and repairing bzr repositories.
18
19
Some of these commands may be good candidates for adding to bzr itself, perhaps
20
as hidden commands.
21
"""
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
22
7290.33.2 by Jelmer Vernooij
Add version_info to some plugins.
23
from ... import version_info  # noqa: F401
6779.1.1 by Jelmer Vernooij
Merge lp:bzr-repodebug.
24
from ...commands import plugin_cmds
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
25
6779.1.3 by Jelmer Vernooij
Add some basic tests for repodebug.
26
27
def test_suite():
28
    from unittest import TestSuite
29
    from .tests import test_suite
30
    result = TestSuite()
31
    result.addTest(test_suite())
32
    return result
33
34
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
35
plugin_cmds.register_lazy(
6779.1.1 by Jelmer Vernooij
Merge lp:bzr-repodebug.
36
    'cmd_check_chk', [], __name__ + '.check_chk')
37
plugin_cmds.register_lazy(
38
    'cmd_chk_used_by', [], __name__ + '.chk_used_by')
39
plugin_cmds.register_lazy(
40
    'cmd_fetch_all_records', [], __name__ + '.fetch_all_records')
41
plugin_cmds.register_lazy(
42
    'cmd_file_refs', [], __name__ + '.file_refs')
0.198.8 by Andrew Bennetts
Add file-refs.
43
plugin_cmds.register_lazy(
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
44
    'cmd_fix_missing_keys_for_stacking', [],
6779.1.1 by Jelmer Vernooij
Merge lp:bzr-repodebug.
45
    __name__ + '.missing_keys_for_stacking_fixer')
0.198.1 by Andrew Bennetts
Collate various hackish repair and debug plugins into one plugin.
46
plugin_cmds.register_lazy(
0.198.4 by Andrew Bennetts
Fix command registration for fix-missing-keys-for-stacking and mirror-revs-into.
47
    'cmd_mirror_revs_into', [],
6779.1.1 by Jelmer Vernooij
Merge lp:bzr-repodebug.
48
    __name__ + '.missing_keys_for_stacking_fixer')
49
plugin_cmds.register_lazy(
50
    'cmd_repo_has_key', [], __name__ + '.repo_has_key')
51
plugin_cmds.register_lazy(
52
    'cmd_repo_keys', [], __name__ + '.repo_keys')