~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

Preliminary --gc-plain-chk support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        'Please read '
41
41
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
42
42
        'before use.',
43
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
43
    branch_format='bzrlib.branch.BzrBranchFormat7',
44
44
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
45
45
    hidden=False,
46
46
    experimental=True,
52
52
        'Please read '
53
53
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
54
54
        'before use.',
55
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
55
    branch_format='bzrlib.branch.BzrBranchFormat7',
56
56
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
57
57
    hidden=False,
58
58
    experimental=True,
64
64
        'Please read '
65
65
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
66
66
        'before use.',
67
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
67
    branch_format='bzrlib.branch.BzrBranchFormat7',
68
68
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
69
69
    hidden=False,
70
70
    experimental=True,
71
71
    )
72
72
 
 
73
# if we have chk support in bzrlib, use it. Otherwise don't register cause 'bzr
 
74
# info' will die horribly.
 
75
try:
 
76
    from bzrlib.repofmt.pack_repo import (
 
77
    RepositoryFormatPackDevelopment4,
 
78
    )
 
79
    format_registry.register_metadir('gc-plain-chk',
 
80
        'bzrlib.plugins.groupcompress.repofmt.RepositoryFormatPackGCPlainCHK',
 
81
        help='pack-1.9 with CHK inv and group compress. '
 
82
            'Please read '
 
83
            'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
84
            'before use.',
 
85
        branch_format='bzrlib.branch.BzrBranchFormat7',
 
86
        tree_format='bzrlib.workingtree.WorkingTreeFormat4',
 
87
        hidden=False,
 
88
        experimental=True,
 
89
        )
 
90
except ImportError:
 
91
    pass
 
92
 
73
93
from bzrlib.repository import format_registry as repo_registry
74
94
repo_registry.register_lazy(
75
95
    'Bazaar development format - btree+gc (needs bzr.dev from 1.6)\n',
76
96
    'bzrlib.plugins.groupcompress.repofmt',
77
97
    'RepositoryFormatPackGCPlain',
78
98
    )
79
 
from bzrlib.repository import format_registry as repo_registry
80
99
repo_registry.register_lazy(
81
100
    'Bazaar development format - btree+gc-rich-root (needs bzr.dev from 1.6)\n',
82
101
    'bzrlib.plugins.groupcompress.repofmt',
83
102
    'RepositoryFormatPackGCRichRoot',
84
103
    )
85
 
 
86
 
from bzrlib.repository import format_registry as repo_registry
87
104
repo_registry.register_lazy(
88
105
    'Bazaar development format - btree+gc-subtrees (needs bzr.dev from 1.6)\n',
89
106
    'bzrlib.plugins.groupcompress.repofmt',
90
107
    'RepositoryFormatPackGCSubtrees',
91
108
    )
 
109
repo_registry.register_lazy(
 
110
    'Bazaar development format - chk+gc (needs bzr.dev from 1.12)\n',
 
111
    'bzrlib.plugins.groupcompress.repofmt',
 
112
    'RepositoryFormatPackGCPlainCHK',
 
113
    )
92
114
 
93
115
 
94
116