/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/weave_fmt/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from __future__ import absolute_import
23
23
 
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
26
26
 
27
 
from brzlib import (
 
27
from breezy import (
28
28
    branch as _mod_branch,
29
29
    controldir,
30
30
    repository as _mod_repository,
31
31
    serializer,
32
32
    workingtree as _mod_workingtree,
33
33
    )
34
 
from brzlib.bzrdir import (
 
34
from breezy.bzrdir import (
35
35
    BzrProber,
36
36
    register_metadir,
37
37
    )
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',
47
47
)
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',
52
52
)
53
53
 
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.
59
59
 
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'
64
64
    )
65
65
 
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')
75
75
 
76
76
 
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.',
84
84
    hidden=True,
85
85
    deprecated=True)
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',
91
91
    hidden=True,
92
92
    deprecated=True)
93
93
 
94
94
 
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",
97
97
    "BzrDirFormat4")
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",
100
100
    "BzrDirFormat5")
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",
103
103
    "BzrDirFormat6")
104
104
 
105
105
 
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")
111
111
 
112
112
 
113
113
_mod_workingtree.format_registry.register_extra_lazy(
114
 
    'brzlib.plugins.weave_fmt.workingtree',
 
114
    'breezy.plugins.weave_fmt.workingtree',
115
115
    'WorkingTreeFormat2')
116
116
 
117
 
serializer.format_registry.register_lazy('4', 'brzlib.plugins.weave_fmt.xml4',
 
117
serializer.format_registry.register_lazy('4', 'breezy.plugins.weave_fmt.xml4',
118
118
    'serializer_v4')
119
119
 
120
120
def load_tests(basic_tests, module, loader):