19
19
These were formats present in pre-1.0 version of Bazaar.
22
# Since we are a built-in plugin we share the bzrlib version
23
from bzrlib import version_info
22
25
from bzrlib import (
26
branch as _mod_branch,
28
repository as _mod_repository,
30
workingtree as _mod_workingtree,
32
from bzrlib.bzrdir import (
31
37
# Pre-0.8 formats that don't have a disk format string (because they are
32
38
# versioned by the matching control directory). We use the control directories
33
39
# disk format string as a key for the network_name because they meet the
34
40
# constraints (simple string, unique, immutable).
35
repository.network_format_registry.register_lazy(
41
_mod_repository.network_format_registry.register_lazy(
36
42
"Bazaar-NG branch, format 5\n",
37
43
'bzrlib.plugins.weave_fmt.repository',
38
44
'RepositoryFormat5',
40
repository.network_format_registry.register_lazy(
46
_mod_repository.network_format_registry.register_lazy(
41
47
"Bazaar-NG branch, format 6\n",
42
48
'bzrlib.plugins.weave_fmt.repository',
43
49
'RepositoryFormat6',
49
55
# needed, it's constructed directly by the BzrDir. Non-native formats where
50
56
# the repository is not separately opened are similar.
52
repository.format_registry.register_lazy(
58
_mod_repository.format_registry.register_lazy(
53
59
'Bazaar-NG Repository format 7',
54
60
'bzrlib.plugins.weave_fmt.repository',
55
61
'RepositoryFormat7'
58
repository.format_registry.register_extra_lazy(
64
_mod_repository.format_registry.register_extra_lazy(
59
65
'bzrlib.plugins.weave_fmt.repository',
60
66
'RepositoryFormat4')
61
repository.format_registry.register_extra_lazy(
67
_mod_repository.format_registry.register_extra_lazy(
62
68
'bzrlib.plugins.weave_fmt.repository',
63
69
'RepositoryFormat5')
64
repository.format_registry.register_extra_lazy(
70
_mod_repository.format_registry.register_extra_lazy(
65
71
'bzrlib.plugins.weave_fmt.repository',
66
72
'RepositoryFormat6')
75
81
' support checkouts or shared repositories.',
78
bzrdir.register_metadir(controldir.format_registry, 'metaweave',
84
register_metadir(controldir.format_registry, 'metaweave',
79
85
'bzrlib.plugins.weave_fmt.repository.RepositoryFormat7',
80
86
'Transitional format in 0.8. Slower than knit.',
81
87
branch_format='bzrlib.branch.BzrBranchFormat5',
82
tree_format='bzrlib.workingtree.WorkingTreeFormat3',
88
tree_format='bzrlib.workingtree_3.WorkingTreeFormat3',
87
bzrdir.BzrProber.formats.register_lazy(
93
BzrProber.formats.register_lazy(
88
94
"Bazaar-NG branch, format 0.0.4\n", "bzrlib.plugins.weave_fmt.bzrdir",
90
bzrdir.BzrProber.formats.register_lazy(
96
BzrProber.formats.register_lazy(
91
97
"Bazaar-NG branch, format 5\n", "bzrlib.plugins.weave_fmt.bzrdir",
93
bzrdir.BzrProber.formats.register_lazy(
99
BzrProber.formats.register_lazy(
94
100
"Bazaar-NG branch, format 6\n", "bzrlib.plugins.weave_fmt.bzrdir",
98
branch.format_registry.register_extra_lazy(
104
_mod_branch.format_registry.register_extra_lazy(
99
105
'bzrlib.plugins.weave_fmt.branch', 'BzrBranchFormat4')
100
branch.network_format_registry.register_lazy(
106
_mod_branch.network_format_registry.register_lazy(
101
107
"Bazaar-NG branch, format 6\n",
102
108
'bzrlib.plugins.weave_fmt.branch', "BzrBranchFormat4")
105
workingtree.format_registry.register_extra_lazy(
111
_mod_workingtree.format_registry.register_extra_lazy(
106
112
'bzrlib.plugins.weave_fmt.workingtree',
107
113
'WorkingTreeFormat2')