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. '
42
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
44
branch_format='bzrlib.branch.BzrBranchFormat7',
45
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
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. '
54
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
56
branch_format='bzrlib.branch.BzrBranchFormat7',
57
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
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. '
66
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
68
branch_format='bzrlib.branch.BzrBranchFormat7',
69
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
40
help='pack-1.9 with xml inv, group compress '
42
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
44
branch_format='bzrlib.branch.BzrBranchFormat7',
45
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
79
55
from bzrlib.repofmt.pack_repo import (
80
56
RepositoryFormatPackDevelopment5,
81
57
RepositoryFormatPackDevelopment5Hash16,
58
RepositoryFormatPackDevelopment5Hash255,
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. '
87
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
89
branch_format='bzrlib.branch.BzrBranchFormat7',
90
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
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',
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. '
103
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
105
branch_format='bzrlib.branch.BzrBranchFormat7',
106
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
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',
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. '
119
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
121
branch_format='bzrlib.branch.BzrBranchFormat7',
122
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
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. '
64
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
66
branch_format='bzrlib.branch.BzrBranchFormat7',
67
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
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',
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 '
80
'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
82
branch_format='bzrlib.branch.BzrBranchFormat7',
83
tree_format='bzrlib.workingtree.WorkingTreeFormat5',
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',
131
92
except ImportError:
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',
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',
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',
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'])
159
102
def load_tests(standard_tests, module, loader):