/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 bzrlib/plugins/weave_fmt/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-14 11:32:35 UTC
  • mfrom: (5718.2.3 no-weave-import)
  • Revision ID: pqm@pqm.ubuntu.com-20110314113235-vkdg2umzio48zlnu
(jelmer) Fix various import issues,
 allow ControlDir.destroy_branch to raise UnsupportedOperation. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""
21
21
 
22
22
from bzrlib import (
23
 
    branch,
24
 
    bzrdir,
 
23
    branch as _mod_branch,
25
24
    controldir,
26
 
    repository,
 
25
    repository as _mod_repository,
27
26
    serializer,
28
 
    workingtree,
 
27
    workingtree as _mod_workingtree,
 
28
    )
 
29
from bzrlib.bzrdir import (
 
30
    BzrProber,
 
31
    register_metadir,
29
32
    )
30
33
 
31
34
# Pre-0.8 formats that don't have a disk format string (because they are
32
35
# versioned by the matching control directory). We use the control directories
33
36
# disk format string as a key for the network_name because they meet the
34
37
# constraints (simple string, unique, immutable).
35
 
repository.network_format_registry.register_lazy(
 
38
_mod_repository.network_format_registry.register_lazy(
36
39
    "Bazaar-NG branch, format 5\n",
37
40
    'bzrlib.plugins.weave_fmt.repository',
38
41
    'RepositoryFormat5',
39
42
)
40
 
repository.network_format_registry.register_lazy(
 
43
_mod_repository.network_format_registry.register_lazy(
41
44
    "Bazaar-NG branch, format 6\n",
42
45
    'bzrlib.plugins.weave_fmt.repository',
43
46
    'RepositoryFormat6',
49
52
# needed, it's constructed directly by the BzrDir.  Non-native formats where
50
53
# the repository is not separately opened are similar.
51
54
 
52
 
repository.format_registry.register_lazy(
 
55
_mod_repository.format_registry.register_lazy(
53
56
    'Bazaar-NG Repository format 7',
54
57
    'bzrlib.plugins.weave_fmt.repository',
55
58
    'RepositoryFormat7'
56
59
    )
57
60
 
58
 
repository.format_registry.register_extra_lazy(
 
61
_mod_repository.format_registry.register_extra_lazy(
59
62
    'bzrlib.plugins.weave_fmt.repository',
60
63
    'RepositoryFormat4')
61
 
repository.format_registry.register_extra_lazy(
 
64
_mod_repository.format_registry.register_extra_lazy(
62
65
    'bzrlib.plugins.weave_fmt.repository',
63
66
    'RepositoryFormat5')
64
 
repository.format_registry.register_extra_lazy(
 
67
_mod_repository.format_registry.register_extra_lazy(
65
68
    'bzrlib.plugins.weave_fmt.repository',
66
69
    'RepositoryFormat6')
67
70
 
75
78
    ' support checkouts or shared repositories.',
76
79
    hidden=True,
77
80
    deprecated=True)
78
 
bzrdir.register_metadir(controldir.format_registry, 'metaweave',
 
81
register_metadir(controldir.format_registry, 'metaweave',
79
82
    'bzrlib.plugins.weave_fmt.repository.RepositoryFormat7',
80
83
    'Transitional format in 0.8.  Slower than knit.',
81
84
    branch_format='bzrlib.branch.BzrBranchFormat5',
84
87
    deprecated=True)
85
88
 
86
89
 
87
 
bzrdir.BzrProber.formats.register_lazy(
 
90
BzrProber.formats.register_lazy(
88
91
    "Bazaar-NG branch, format 0.0.4\n", "bzrlib.plugins.weave_fmt.bzrdir",
89
92
    "BzrDirFormat4")
90
 
bzrdir.BzrProber.formats.register_lazy(
 
93
BzrProber.formats.register_lazy(
91
94
    "Bazaar-NG branch, format 5\n", "bzrlib.plugins.weave_fmt.bzrdir",
92
95
    "BzrDirFormat5")
93
 
bzrdir.BzrProber.formats.register_lazy(
 
96
BzrProber.formats.register_lazy(
94
97
    "Bazaar-NG branch, format 6\n", "bzrlib.plugins.weave_fmt.bzrdir",
95
98
    "BzrDirFormat6")
96
99
 
97
100
 
98
 
branch.format_registry.register_extra_lazy(
 
101
_mod_branch.format_registry.register_extra_lazy(
99
102
    'bzrlib.plugins.weave_fmt.branch', 'BzrBranchFormat4')
100
 
branch.network_format_registry.register_lazy(
 
103
_mod_branch.network_format_registry.register_lazy(
101
104
    "Bazaar-NG branch, format 6\n",
102
105
    'bzrlib.plugins.weave_fmt.branch', "BzrBranchFormat4")
103
106
 
104
107
 
105
 
workingtree.format_registry.register_extra_lazy(
 
108
_mod_workingtree.format_registry.register_extra_lazy(
106
109
    'bzrlib.plugins.weave_fmt.workingtree',
107
110
    'WorkingTreeFormat2')
108
111