~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

Bring in the 'rabin' experiment.
Change the names and disk-strings for the various repository formats.
Make the CHK format repositories all 'rich-root' we can introduce non-rich-root later.
Make a couple other small tweaks, like copyright statements, etc.
Remove patch-delta.c, at this point, it was only a reference implementation,
as we have fully integrated the patching into pyrex, to allow nicer exception
handling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
from bzrlib.bzrdir import format_registry
37
37
from bzrlib.repository import format_registry as repo_registry
38
 
format_registry.register_metadir('gc-plain',
 
38
format_registry.register_metadir('gc-no-rich-root',
39
39
    'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlain',
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.',
44
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
45
 
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
46
 
    hidden=False,
47
 
    experimental=True,
48
 
    )
49
 
 
50
 
format_registry.register_metadir('gc-rich-root',
51
 
    'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCRichRoot',
52
 
    help='rich-root-pack with btree index and group compress. '
53
 
        'Please read '
54
 
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
55
 
        'before use.',
56
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
57
 
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
58
 
    hidden=False,
59
 
    experimental=True,
60
 
    )
61
 
 
62
 
format_registry.register_metadir('gc-subtrees',
63
 
    'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCSubtrees',
64
 
    help='pack-0.92-subtress with btree index and group compress. '
65
 
        'Please read '
66
 
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
67
 
        'before use.',
68
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
69
 
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
 
40
    help='pack-1.9 with xml inv, group compress '
 
41
        'Please read '
 
42
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
43
        'before use.',
 
44
    branch_format='bzrlib.branch.BzrBranchFormat7',
 
45
    tree_format='bzrlib.workingtree.WorkingTreeFormat5',
70
46
    hidden=False,
71
47
    experimental=True,
72
48
    )
79
55
    from bzrlib.repofmt.pack_repo import (
80
56
    RepositoryFormatPackDevelopment5,
81
57
    RepositoryFormatPackDevelopment5Hash16,
 
58
    RepositoryFormatPackDevelopment5Hash255,
82
59
    )
83
 
    format_registry.register_metadir('gc-plain-chk',
84
 
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlainCHK',
85
 
        help='pack-1.9 with CHK inv and group compress. '
86
 
            'Please read '
87
 
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
88
 
            'before use.',
89
 
        branch_format='bzrlib.branch.BzrBranchFormat7',
90
 
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
91
 
        hidden=False,
92
 
        experimental=True,
93
 
        )
94
 
    repo_registry.register_lazy(
95
 
        'Bazaar development format - chk+gc (needs bzr.dev from 1.13)\n',
96
 
        'bzrlib.plugins.groupcompress.repofmt',
97
 
        'RepositoryFormatPackGCPlainCHK',
98
 
        )
99
 
    format_registry.register_metadir('gc-plain-chk16',
100
 
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlainCHK16',
101
 
        help='pack-1.9 with 16-way hashed CHK inv and group compress. '
102
 
            'Please read '
103
 
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
104
 
            'before use.',
105
 
        branch_format='bzrlib.branch.BzrBranchFormat7',
106
 
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
107
 
        hidden=False,
108
 
        experimental=True,
109
 
        )
110
 
    repo_registry.register_lazy(
111
 
        'Bazaar development format - hash16chk+gc (needs bzr.dev from 1.13)\n',
112
 
        'bzrlib.plugins.groupcompress.repofmt',
113
 
        'RepositoryFormatPackGCPlainCHK16',
114
 
        )
115
 
    format_registry.register_metadir('gc-plain-chk255',
116
 
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlainCHK255',
117
 
        help='pack-1.9 with 255-way hashed CHK inv and group compress. '
118
 
            'Please read '
119
 
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
120
 
            'before use.',
121
 
        branch_format='bzrlib.branch.BzrBranchFormat7',
122
 
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
123
 
        hidden=False,
124
 
        experimental=True,
125
 
        )
126
 
    repo_registry.register_lazy(
127
 
        'Bazaar development format - hash255chk+gc (needs bzr.dev from 1.13)\n',
128
 
        'bzrlib.plugins.groupcompress.repofmt',
129
 
        'RepositoryFormatPackGCPlainCHK255',
 
60
    format_registry.register_metadir('gc-chk16',
 
61
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCCHK16',
 
62
        help='pack-1.9 with 16-way hashed CHK inv, group compress, rich roots. '
 
63
            'Please read '
 
64
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
65
            'before use.',
 
66
        branch_format='bzrlib.branch.BzrBranchFormat7',
 
67
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
 
68
        hidden=False,
 
69
        experimental=True,
 
70
        )
 
71
    repo_registry.register_lazy(
 
72
        'Bazaar development format - hash16chk+gc rich-root (needs bzr.dev from 1.13)\n',
 
73
        'bzrlib.plugins.groupcompres.repofmt',
 
74
        'RepositoryFormatPackGCCHK16',
 
75
        )
 
76
    format_registry.register_metadir('gc-chk255',
 
77
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCCHK255',
 
78
        help='pack-1.9 with 255-way hashed CHK inv, group compress, rich roots '
 
79
            'Please read '
 
80
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
81
            'before use.',
 
82
        branch_format='bzrlib.branch.BzrBranchFormat7',
 
83
        tree_format='bzrlib.workingtree.WorkingTreeFormat5',
 
84
        hidden=False,
 
85
        experimental=True,
 
86
        )
 
87
    repo_registry.register_lazy(
 
88
        'Bazaar development format - hash255chk+gc rich-root (needs bzr.dev from 1.13)\n',
 
89
        'bzrlib.plugins.groupcompress.repofmt',
 
90
        'RepositoryFormatPackGCCHK255',
130
91
        )
131
92
except ImportError:
132
93
    pass
133
94
 
134
95
repo_registry.register_lazy(
135
 
    'Bazaar development format - btree+gc (needs bzr.dev from 1.6)\n',
 
96
    'Bazaar development format - btree+gc (needs bzr.dev from 1.13)\n',
136
97
    'bzrlib.plugins.groupcompress.repofmt',
137
98
    'RepositoryFormatPackGCPlain',
138
99
    )
139
 
repo_registry.register_lazy(
140
 
    'Bazaar development format - btree+gc-rich-root (needs bzr.dev from 1.6)\n',
141
 
    'bzrlib.plugins.groupcompress.repofmt',
142
 
    'RepositoryFormatPackGCRichRoot',
143
 
    )
144
 
repo_registry.register_lazy(
145
 
    'Bazaar development format - btree+gc-subtrees (needs bzr.dev from 1.6)\n',
146
 
    'bzrlib.plugins.groupcompress.repofmt',
147
 
    'RepositoryFormatPackGCSubtrees',
148
 
    )
149
 
 
150
 
 
151
 
 
152
 
def test_suite():
153
 
    # Thunk across to load_tests for niceness with older bzr versions
154
 
    from bzrlib.tests import TestLoader
155
 
    loader = TestLoader()
156
 
    return loader.loadTestsFromModuleNames(['bzrlib.plugins.groupcompress'])
157
100
 
158
101
 
159
102
def load_tests(standard_tests, module, loader):