~jameinel/+junk/bzr-index2-stuff

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Robert Collins
  • Date: 2008-07-01 11:37:43 UTC
  • Revision ID: robertc@robertcollins.net-20080701113743-n0pc6x42arqd4zhd
Add --btree-plain repository format for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
=============
22
22
 
23
23
See `pydoc bzrlib.plugins.index2.index`.
 
24
 
 
25
This plugin also provides an experimental repository format making use of the
 
26
new index classes. bzr init --btree-plain to test this. Warning: if it eats your
 
27
data, you get to do the stomach searching.
24
28
"""
25
29
 
 
30
from bzrlib.bzrdir import format_registry
 
31
format_registry.register_metadir('btree-plain',
 
32
    'bzrlib.plugins.index2.repofmt.RepositoryFormatPackBTreePlain',
 
33
    help='Trivial rename of pack-0.92 with B+Tree based index. '
 
34
        'Please read '
 
35
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
36
        'before use.',
 
37
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
38
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
 
39
    hidden=False,
 
40
    experimental=True,
 
41
    )
 
42
 
 
43
from bzrlib.repository import format_registry as repo_registry
 
44
repo_registry.register_lazy(
 
45
    'Bazaar development format - btree (needs bzr.dev from 1.6)\n',
 
46
    'bzrlib.plugins.index2.repofmt',
 
47
    'RepositoryFormatPackBTreePlain',
 
48
    )
 
49
 
 
50
 
26
51
def test_suite():
27
52
    # Thunk across to load_tests for niceness with older bzr versions
28
53
    from bzrlib.tests import TestLoader