~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-05-10 07:46:15 UTC
  • mfrom: (5844 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5845.
  • Revision ID: jelmer@samba.org-20110510074615-eptod049ndjxc4i7
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
These were formats present in pre-1.0 version of Bazaar.
20
20
"""
21
21
 
 
22
# Since we are a built-in plugin we share the bzrlib version
 
23
from bzrlib import version_info
 
24
 
22
25
from bzrlib import (
23
 
    branch,
24
 
    bzrdir,
 
26
    branch as _mod_branch,
25
27
    controldir,
26
 
    repository,
 
28
    repository as _mod_repository,
27
29
    serializer,
28
 
    workingtree,
 
30
    workingtree as _mod_workingtree,
 
31
    )
 
32
from bzrlib.bzrdir import (
 
33
    BzrProber,
 
34
    register_metadir,
29
35
    )
30
36
 
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',
39
45
)
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.
51
57
 
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'
56
62
    )
57
63
 
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')
67
73
 
75
81
    ' support checkouts or shared repositories.',
76
82
    hidden=True,
77
83
    deprecated=True)
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',
83
89
    hidden=True,
84
90
    deprecated=True)
85
91
 
86
92
 
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",
89
95
    "BzrDirFormat4")
90
 
bzrdir.BzrProber.formats.register_lazy(
 
96
BzrProber.formats.register_lazy(
91
97
    "Bazaar-NG branch, format 5\n", "bzrlib.plugins.weave_fmt.bzrdir",
92
98
    "BzrDirFormat5")
93
 
bzrdir.BzrProber.formats.register_lazy(
 
99
BzrProber.formats.register_lazy(
94
100
    "Bazaar-NG branch, format 6\n", "bzrlib.plugins.weave_fmt.bzrdir",
95
101
    "BzrDirFormat6")
96
102
 
97
103
 
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")
103
109
 
104
110
 
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')
108
114