/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.17.1 by Robert Collins
Starting point. Interface tests hooked up and failing.
1
# groupcompress, a bzr plugin providing new compression logic.
2
# Copyright (C) 2008 Canonical Limited.
3
# 
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License version 2 as published
6
# by the Free Software Foundation.
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 St, Fifth Floor, Boston, MA  02110-1301 USA
16
# 
17
18
"""groupcompress will provide smaller bzr repositories.
19
20
groupcompress
21
+++++++++++++
22
23
bzr repositories are larger than we want them to be; this tries to implement
24
some of the things we have been considering. The primary logic is deep in the
25
VersionedFiles abstraction, and at this point there is no user visible 
26
facilities.
27
28
Documentation
29
=============
30
0.17.9 by Robert Collins
Initial stab at repository format support.
31
See DESIGN in the groupcompress source.
0.17.1 by Robert Collins
Starting point. Interface tests hooked up and failing.
32
"""
0.17.9 by Robert Collins
Initial stab at repository format support.
33
34
35
36
from bzrlib.bzrdir import format_registry
0.20.1 by John Arbash Meinel
Import repo_registry earlier.
37
from bzrlib.repository import format_registry as repo_registry
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
38
format_registry.register_metadir('gcr',
39
    'bzrlib.plugins.groupcompress_rabin.repofmt.RepositoryFormatPackGCRabin',
0.17.9 by Robert Collins
Initial stab at repository format support.
40
    help='pack-0.92 with btree index and group compress. '
41
        'Please read '
42
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
43
        'before use.',
0.17.25 by Robert Collins
Preliminary --gc-plain-chk support.
44
    branch_format='bzrlib.branch.BzrBranchFormat7',
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
45
    tree_format='bzrlib.workingtree.WorkingTreeFormat5',
0.17.9 by Robert Collins
Initial stab at repository format support.
46
    hidden=False,
47
    experimental=True,
48
    )
49
0.17.25 by Robert Collins
Preliminary --gc-plain-chk support.
50
# if we have chk support in bzrlib, use it. Otherwise don't register cause 'bzr
51
# info' will die horribly.
52
try:
53
    from bzrlib.repofmt.pack_repo import (
0.21.1 by John Arbash Meinel
Start basing the groupcompress chk formats on the dev5 formats.
54
    RepositoryFormatPackDevelopment5,
55
    RepositoryFormatPackDevelopment5Hash16,
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
56
    RepositoryFormatPackDevelopment5Hash255,
0.17.25 by Robert Collins
Preliminary --gc-plain-chk support.
57
    )
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
58
    format_registry.register_metadir('gcr-chk16',
0.23.3 by John Arbash Meinel
Fix a couple more locations.
59
        'bzrlib.plugins.groupcompress_rabin.repofmt.RepositoryFormatPackGCRabinCHK16',
0.21.1 by John Arbash Meinel
Start basing the groupcompress chk formats on the dev5 formats.
60
        help='pack-1.9 with 16-way hashed CHK inv and group compress. '
61
            'Please read '
62
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
63
            'before use.',
64
        branch_format='bzrlib.branch.BzrBranchFormat7',
65
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
66
        hidden=False,
67
        experimental=True,
68
        )
69
    repo_registry.register_lazy(
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
70
        'Bazaar development format - hash16chk+gcr (needs bzr.dev from 1.13)\n',
0.23.3 by John Arbash Meinel
Fix a couple more locations.
71
        'bzrlib.plugins.groupcompress_rabin.repofmt',
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
72
        'RepositoryFormatPackGCRabinCHK16',
0.21.1 by John Arbash Meinel
Start basing the groupcompress chk formats on the dev5 formats.
73
        )
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
74
    format_registry.register_metadir('gcr-chk255',
0.23.3 by John Arbash Meinel
Fix a couple more locations.
75
        'bzrlib.plugins.groupcompress_rabin.repofmt.RepositoryFormatPackGCRabinCHK255',
0.21.3 by John Arbash Meinel
Start putting together a GroupCompress format that is built on dev5
76
        help='pack-1.9 with 255-way hashed CHK inv and group compress. '
77
            'Please read '
78
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
79
            'before use.',
80
        branch_format='bzrlib.branch.BzrBranchFormat7',
81
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
82
        hidden=False,
83
        experimental=True,
84
        )
0.23.35 by John Arbash Meinel
Add a rich-root compatible gcr+chk255+rich-root format.
85
    format_registry.register_metadir('gcr-chk255-rich-root',
86
        'bzrlib.plugins.groupcompress_rabin.repofmt.RepositoryFormatPackGCRabinRichRootCHK255',
87
        help='pack-1.9 with 255-way hashed CHK inv, group compress, and rich roots. '
88
            'Please read '
89
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
90
            'before use.',
91
        branch_format='bzrlib.branch.BzrBranchFormat7',
92
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
93
        hidden=False,
94
        experimental=True,
95
        )
0.21.3 by John Arbash Meinel
Start putting together a GroupCompress format that is built on dev5
96
    repo_registry.register_lazy(
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
97
        'Bazaar development format - hash255chk+gcr (needs bzr.dev from 1.13)\n',
0.23.3 by John Arbash Meinel
Fix a couple more locations.
98
        'bzrlib.plugins.groupcompress_rabin.repofmt',
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
99
        'RepositoryFormatPackGCRabinCHK255',
0.21.3 by John Arbash Meinel
Start putting together a GroupCompress format that is built on dev5
100
        )
0.23.35 by John Arbash Meinel
Add a rich-root compatible gcr+chk255+rich-root format.
101
    repo_registry.register_lazy(
102
        'Bazaar development format - hash255chk+gcr rich-root (needs bzr.dev from 1.13)\n',
103
        'bzrlib.plugins.groupcompress_rabin.repofmt',
104
        'RepositoryFormatPackGCRabinRichRootCHK255',
105
        )
0.17.25 by Robert Collins
Preliminary --gc-plain-chk support.
106
except ImportError:
107
    pass
108
0.17.9 by Robert Collins
Initial stab at repository format support.
109
repo_registry.register_lazy(
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
110
    'Bazaar development format - btree+gcr (needs bzr.dev from 1.13)\n',
0.23.3 by John Arbash Meinel
Fix a couple more locations.
111
    'bzrlib.plugins.groupcompress_rabin.repofmt',
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
112
    'RepositoryFormatPackGCRabin',
113
    )
0.17.1 by Robert Collins
Starting point. Interface tests hooked up and failing.
114
115
116
def load_tests(standard_tests, module, loader):
117
    standard_tests.addTests(loader.loadTestsFromModuleNames(
0.23.1 by John Arbash Meinel
Start a quick experimentation with a different 'diff' algorithm.
118
        ['bzrlib.plugins.groupcompress_rabin.tests']))
0.17.1 by Robert Collins
Starting point. Interface tests hooked up and failing.
119
    return standard_tests