22
22
from __future__ import absolute_import
24
# Since we are a built-in plugin we share the brzlib version
25
from brzlib import version_info
24
# Since we are a built-in plugin we share the breezy version
25
from breezy import version_info
28
28
branch as _mod_branch,
30
30
repository as _mod_repository,
32
32
workingtree as _mod_workingtree,
34
from brzlib.bzrdir import (
34
from breezy.bzrdir import (
42
42
# constraints (simple string, unique, immutable).
43
43
_mod_repository.network_format_registry.register_lazy(
44
44
"Bazaar-NG branch, format 5\n",
45
'brzlib.plugins.weave_fmt.repository',
45
'breezy.plugins.weave_fmt.repository',
46
46
'RepositoryFormat5',
48
48
_mod_repository.network_format_registry.register_lazy(
49
49
"Bazaar-NG branch, format 6\n",
50
'brzlib.plugins.weave_fmt.repository',
50
'breezy.plugins.weave_fmt.repository',
51
51
'RepositoryFormat6',
54
54
# weave formats which has no format string and are not discoverable or independently
55
55
# creatable on disk, so are not registered in format_registry. They're
56
# all in brzlib.plugins.weave_fmt.repository now. When an instance of one of these is
56
# all in breezy.plugins.weave_fmt.repository now. When an instance of one of these is
57
57
# needed, it's constructed directly by the BzrDir. Non-native formats where
58
58
# the repository is not separately opened are similar.
60
60
_mod_repository.format_registry.register_lazy(
61
61
'Bazaar-NG Repository format 7',
62
'brzlib.plugins.weave_fmt.repository',
62
'breezy.plugins.weave_fmt.repository',
63
63
'RepositoryFormat7'
66
66
_mod_repository.format_registry.register_extra_lazy(
67
'brzlib.plugins.weave_fmt.repository',
67
'breezy.plugins.weave_fmt.repository',
68
68
'RepositoryFormat4')
69
69
_mod_repository.format_registry.register_extra_lazy(
70
'brzlib.plugins.weave_fmt.repository',
70
'breezy.plugins.weave_fmt.repository',
71
71
'RepositoryFormat5')
72
72
_mod_repository.format_registry.register_extra_lazy(
73
'brzlib.plugins.weave_fmt.repository',
73
'breezy.plugins.weave_fmt.repository',
74
74
'RepositoryFormat6')
78
78
# repository.py. MetaDir formats have their repository format network name
79
79
# inferred from their disk format string.
80
80
controldir.format_registry.register_lazy('weave',
81
"brzlib.plugins.weave_fmt.bzrdir", "BzrDirFormat6",
81
"breezy.plugins.weave_fmt.bzrdir", "BzrDirFormat6",
82
82
'Pre-0.8 format. Slower than knit and does not'
83
83
' support checkouts or shared repositories.',
86
86
register_metadir(controldir.format_registry, 'metaweave',
87
'brzlib.plugins.weave_fmt.repository.RepositoryFormat7',
87
'breezy.plugins.weave_fmt.repository.RepositoryFormat7',
88
88
'Transitional format in 0.8. Slower than knit.',
89
branch_format='brzlib.branchfmt.fullhistory.BzrBranchFormat5',
90
tree_format='brzlib.workingtree_3.WorkingTreeFormat3',
89
branch_format='breezy.branchfmt.fullhistory.BzrBranchFormat5',
90
tree_format='breezy.workingtree_3.WorkingTreeFormat3',
95
95
BzrProber.formats.register_lazy(
96
"Bazaar-NG branch, format 0.0.4\n", "brzlib.plugins.weave_fmt.bzrdir",
96
"Bazaar-NG branch, format 0.0.4\n", "breezy.plugins.weave_fmt.bzrdir",
98
98
BzrProber.formats.register_lazy(
99
"Bazaar-NG branch, format 5\n", "brzlib.plugins.weave_fmt.bzrdir",
99
"Bazaar-NG branch, format 5\n", "breezy.plugins.weave_fmt.bzrdir",
101
101
BzrProber.formats.register_lazy(
102
"Bazaar-NG branch, format 6\n", "brzlib.plugins.weave_fmt.bzrdir",
102
"Bazaar-NG branch, format 6\n", "breezy.plugins.weave_fmt.bzrdir",
106
106
_mod_branch.format_registry.register_extra_lazy(
107
'brzlib.plugins.weave_fmt.branch', 'BzrBranchFormat4')
107
'breezy.plugins.weave_fmt.branch', 'BzrBranchFormat4')
108
108
_mod_branch.network_format_registry.register_lazy(
109
109
"Bazaar-NG branch, format 6\n",
110
'brzlib.plugins.weave_fmt.branch', "BzrBranchFormat4")
110
'breezy.plugins.weave_fmt.branch', "BzrBranchFormat4")
113
113
_mod_workingtree.format_registry.register_extra_lazy(
114
'brzlib.plugins.weave_fmt.workingtree',
114
'breezy.plugins.weave_fmt.workingtree',
115
115
'WorkingTreeFormat2')
117
serializer.format_registry.register_lazy('4', 'brzlib.plugins.weave_fmt.xml4',
117
serializer.format_registry.register_lazy('4', 'breezy.plugins.weave_fmt.xml4',
120
120
def load_tests(basic_tests, module, loader):