/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/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
import sys
31
31
 
32
 
from bzrlib.lazy_import import lazy_import
 
32
from breezy.lazy_import import lazy_import
33
33
lazy_import(globals(), """
34
 
import bzrlib
35
 
from bzrlib import (
 
34
import breezy
 
35
from breezy import (
36
36
    branch as _mod_branch,
37
37
    cleanup,
38
38
    errors,
53
53
    workingtree_3,
54
54
    workingtree_4,
55
55
    )
56
 
from bzrlib.branchfmt import fullhistory as fullhistorybranch
57
 
from bzrlib.repofmt import knitpack_repo
58
 
from bzrlib.transport import (
 
56
from breezy.branchfmt import fullhistory as fullhistorybranch
 
57
from breezy.repofmt import knitpack_repo
 
58
from breezy.transport import (
59
59
    do_catching_redirections,
60
60
    local,
61
61
    )
62
 
from bzrlib.i18n import gettext
 
62
from breezy.i18n import gettext
63
63
""")
64
64
 
65
 
from bzrlib.trace import (
 
65
from breezy.trace import (
66
66
    mutter,
67
67
    note,
68
68
    )
69
69
 
70
 
from bzrlib import (
 
70
from breezy import (
71
71
    config,
72
72
    controldir,
73
73
    registry,
74
74
    )
75
 
from bzrlib.symbol_versioning import (
 
75
from breezy.symbol_versioning import (
76
76
    deprecated_in,
77
77
    deprecated_method,
78
78
    )
469
469
    def _available_backup_name(self, base):
470
470
        """Find a non-existing backup file name based on base.
471
471
 
472
 
        See bzrlib.osutils.available_backup_name about race conditions.
 
472
        See breezy.osutils.available_backup_name about race conditions.
473
473
        """
474
474
        return osutils.available_backup_name(base, self.root_transport.has)
475
475
 
925
925
 
926
926
        This might be a synthetic object for e.g. RemoteBranch and SVN.
927
927
        """
928
 
        from bzrlib.branch import BranchFormatMetadir
 
928
        from breezy.branch import BranchFormatMetadir
929
929
        return BranchFormatMetadir.find_format(self, name=name)
930
930
 
931
931
    def _get_mkdir_mode(self):
936
936
 
937
937
    def get_branch_reference(self, name=None):
938
938
        """See BzrDir.get_branch_reference()."""
939
 
        from bzrlib.branch import BranchFormatMetadir
 
939
        from breezy.branch import BranchFormatMetadir
940
940
        format = BranchFormatMetadir.find_format(self, name=name)
941
941
        return format.get_reference(self, name=name)
942
942
 
1031
1031
        Note: if you're going to open the working tree, you should just go
1032
1032
        ahead and try, and not ask permission first.
1033
1033
        """
1034
 
        from bzrlib.workingtree import WorkingTreeFormatMetaDir
 
1034
        from breezy.workingtree import WorkingTreeFormatMetaDir
1035
1035
        try:
1036
1036
            WorkingTreeFormatMetaDir.find_format_string(self)
1037
1037
        except errors.NoWorkingTree:
1080
1080
 
1081
1081
    def open_repository(self, unsupported=False):
1082
1082
        """See BzrDir.open_repository."""
1083
 
        from bzrlib.repository import RepositoryFormatMetaDir
 
1083
        from breezy.repository import RepositoryFormatMetaDir
1084
1084
        format = RepositoryFormatMetaDir.find_format(self)
1085
1085
        format.check_support_status(unsupported)
1086
1086
        return format.open(self, _found=True)
1088
1088
    def open_workingtree(self, unsupported=False,
1089
1089
            recommend_upgrade=True):
1090
1090
        """See BzrDir.open_workingtree."""
1091
 
        from bzrlib.workingtree import WorkingTreeFormatMetaDir
 
1091
        from breezy.workingtree import WorkingTreeFormatMetaDir
1092
1092
        format = WorkingTreeFormatMetaDir.find_format(self)
1093
1093
        format.check_support_status(unsupported, recommend_upgrade,
1094
1094
            basedir=self.root_transport.base)
1285
1285
                    raise errors.NotBranchError(path=transport.base)
1286
1286
                if server_version != '2':
1287
1287
                    raise errors.NotBranchError(path=transport.base)
1288
 
            from bzrlib.remote import RemoteBzrDirFormat
 
1288
            from breezy.remote import RemoteBzrDirFormat
1289
1289
            return RemoteBzrDirFormat()
1290
1290
 
1291
1291
    @classmethod
1292
1292
    def known_formats(cls):
1293
 
        from bzrlib.remote import RemoteBzrDirFormat
 
1293
        from breezy.remote import RemoteBzrDirFormat
1294
1294
        return set([RemoteBzrDirFormat()])
1295
1295
 
1296
1296
 
1325
1325
            # metadir1
1326
1326
            if type(self) != BzrDirMetaFormat1:
1327
1327
                return self._initialize_on_transport_vfs(transport)
1328
 
            from bzrlib.remote import RemoteBzrDirFormat
 
1328
            from breezy.remote import RemoteBzrDirFormat
1329
1329
            remote_format = RemoteBzrDirFormat()
1330
1330
            self._supply_sub_formats_to(remote_format)
1331
1331
            return remote_format.initialize_on_transport(transport)
1369
1369
            except errors.NoSmartMedium:
1370
1370
                pass
1371
1371
            else:
1372
 
                from bzrlib.remote import RemoteBzrDirFormat
 
1372
                from breezy.remote import RemoteBzrDirFormat
1373
1373
                # TODO: lookup the local format from a server hint.
1374
1374
                remote_dir_format = RemoteBzrDirFormat()
1375
1375
                remote_dir_format._network_name = self.network_name()
1560
1560
 
1561
1561
    def get_branch_format(self):
1562
1562
        if self._branch_format is None:
1563
 
            from bzrlib.branch import format_registry as branch_format_registry
 
1563
            from breezy.branch import format_registry as branch_format_registry
1564
1564
            self._branch_format = branch_format_registry.get_default()
1565
1565
        return self._branch_format
1566
1566
 
1647
1647
            if target_branch is None:
1648
1648
                if do_upgrade:
1649
1649
                    # TODO: bad monkey, hard-coded formats...
1650
 
                    from bzrlib.branch import BzrBranchFormat7
 
1650
                    from breezy.branch import BzrBranchFormat7
1651
1651
                    new_branch_format = BzrBranchFormat7()
1652
1652
            else:
1653
1653
                new_branch_format = target_branch._format
1697
1697
        """Circular import protection."""
1698
1698
        if self._repository_format:
1699
1699
            return self._repository_format
1700
 
        from bzrlib.repository import format_registry
 
1700
        from breezy.repository import format_registry
1701
1701
        return format_registry.get_default()
1702
1702
 
1703
1703
    def _set_repository_format(self, value):
1728
1728
 
1729
1729
    def __get_workingtree_format(self):
1730
1730
        if self._workingtree_format is None:
1731
 
            from bzrlib.workingtree import (
 
1731
            from breezy.workingtree import (
1732
1732
                format_registry as wt_format_registry,
1733
1733
                )
1734
1734
            self._workingtree_format = wt_format_registry.get_default()
1801
1801
            pass
1802
1802
        else:
1803
1803
            if not isinstance(repo._format, self.target_format.repository_format.__class__):
1804
 
                from bzrlib.repository import CopyConverter
 
1804
                from breezy.repository import CopyConverter
1805
1805
                ui.ui_factory.note(gettext('starting repository conversion'))
1806
1806
                converter = CopyConverter(self.target_format.repository_format)
1807
1807
                converter.convert(repo, pb)
2112
2112
        experimental, alias)
2113
2113
 
2114
2114
register_metadir(controldir.format_registry, 'knit',
2115
 
    'bzrlib.repofmt.knitrepo.RepositoryFormatKnit1',
 
2115
    'breezy.repofmt.knitrepo.RepositoryFormatKnit1',
2116
2116
    'Format using knits.  Recommended for interoperation with bzr <= 0.14.',
2117
 
    branch_format='bzrlib.branchfmt.fullhistory.BzrBranchFormat5',
2118
 
    tree_format='bzrlib.workingtree_3.WorkingTreeFormat3',
 
2117
    branch_format='breezy.branchfmt.fullhistory.BzrBranchFormat5',
 
2118
    tree_format='breezy.workingtree_3.WorkingTreeFormat3',
2119
2119
    hidden=True,
2120
2120
    deprecated=True)
2121
2121
register_metadir(controldir.format_registry, 'dirstate',
2122
 
    'bzrlib.repofmt.knitrepo.RepositoryFormatKnit1',
 
2122
    'breezy.repofmt.knitrepo.RepositoryFormatKnit1',
2123
2123
    help='Format using dirstate for working trees. '
2124
2124
        'Compatible with bzr 0.8 and '
2125
2125
        'above when accessed over the network. Introduced in bzr 0.15.',
2126
 
    branch_format='bzrlib.branchfmt.fullhistory.BzrBranchFormat5',
2127
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2126
    branch_format='breezy.branchfmt.fullhistory.BzrBranchFormat5',
 
2127
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2128
2128
    hidden=True,
2129
2129
    deprecated=True)
2130
2130
register_metadir(controldir.format_registry, 'dirstate-tags',
2131
 
    'bzrlib.repofmt.knitrepo.RepositoryFormatKnit1',
 
2131
    'breezy.repofmt.knitrepo.RepositoryFormatKnit1',
2132
2132
    help='Variant of dirstate with support for tags. '
2133
2133
        'Introduced in bzr 0.15.',
2134
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2135
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2134
    branch_format='breezy.branch.BzrBranchFormat6',
 
2135
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2136
2136
    hidden=True,
2137
2137
    deprecated=True)
2138
2138
register_metadir(controldir.format_registry, 'rich-root',
2139
 
    'bzrlib.repofmt.knitrepo.RepositoryFormatKnit4',
 
2139
    'breezy.repofmt.knitrepo.RepositoryFormatKnit4',
2140
2140
    help='Variant of dirstate with better handling of tree roots. '
2141
2141
        'Introduced in bzr 1.0',
2142
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2143
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2142
    branch_format='breezy.branch.BzrBranchFormat6',
 
2143
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2144
2144
    hidden=True,
2145
2145
    deprecated=True)
2146
2146
register_metadir(controldir.format_registry, 'dirstate-with-subtree',
2147
 
    'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
 
2147
    'breezy.repofmt.knitrepo.RepositoryFormatKnit3',
2148
2148
    help='Variant of dirstate with support for nested trees. '
2149
2149
         'Introduced in 0.15.',
2150
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2151
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2150
    branch_format='breezy.branch.BzrBranchFormat6',
 
2151
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2152
2152
    experimental=True,
2153
2153
    hidden=True,
2154
2154
    )
2155
2155
register_metadir(controldir.format_registry, 'pack-0.92',
2156
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack1',
 
2156
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack1',
2157
2157
    help='Pack-based format used in 1.x series. Introduced in 0.92. '
2158
2158
        'Interoperates with bzr repositories before 0.92 but cannot be '
2159
2159
        'read by bzr < 0.92. '
2160
2160
        ,
2161
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2162
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2161
    branch_format='breezy.branch.BzrBranchFormat6',
 
2162
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2163
2163
    deprecated=True,
2164
2164
    )
2165
2165
register_metadir(controldir.format_registry, 'pack-0.92-subtree',
2166
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack3',
 
2166
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack3',
2167
2167
    help='Pack-based format used in 1.x series, with subtree support. '
2168
2168
        'Introduced in 0.92. Interoperates with '
2169
2169
        'bzr repositories before 0.92 but cannot be read by bzr < 0.92. '
2170
2170
        ,
2171
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2172
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2171
    branch_format='breezy.branch.BzrBranchFormat6',
 
2172
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2173
2173
    hidden=True,
2174
2174
    deprecated=True,
2175
2175
    experimental=True,
2176
2176
    )
2177
2177
register_metadir(controldir.format_registry, 'rich-root-pack',
2178
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack4',
 
2178
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack4',
2179
2179
    help='A variant of pack-0.92 that supports rich-root data '
2180
2180
         '(needed for bzr-svn and bzr-git). Introduced in 1.0.',
2181
 
    branch_format='bzrlib.branch.BzrBranchFormat6',
2182
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2181
    branch_format='breezy.branch.BzrBranchFormat6',
 
2182
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2183
2183
    hidden=True,
2184
2184
    deprecated=True,
2185
2185
    )
2186
2186
register_metadir(controldir.format_registry, '1.6',
2187
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack5',
 
2187
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack5',
2188
2188
    help='A format that allows a branch to indicate that there is another '
2189
2189
         '(stacked) repository that should be used to access data that is '
2190
2190
         'not present locally.',
2191
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2192
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2191
    branch_format='breezy.branch.BzrBranchFormat7',
 
2192
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2193
2193
    hidden=True,
2194
2194
    deprecated=True,
2195
2195
    )
2196
2196
register_metadir(controldir.format_registry, '1.6.1-rich-root',
2197
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack5RichRoot',
 
2197
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack5RichRoot',
2198
2198
    help='A variant of 1.6 that supports rich-root data '
2199
2199
         '(needed for bzr-svn and bzr-git).',
2200
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2201
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2200
    branch_format='breezy.branch.BzrBranchFormat7',
 
2201
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2202
2202
    hidden=True,
2203
2203
    deprecated=True,
2204
2204
    )
2205
2205
register_metadir(controldir.format_registry, '1.9',
2206
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack6',
 
2206
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack6',
2207
2207
    help='A repository format using B+tree indexes. These indexes '
2208
2208
         'are smaller in size, have smarter caching and provide faster '
2209
2209
         'performance for most operations.',
2210
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2211
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2210
    branch_format='breezy.branch.BzrBranchFormat7',
 
2211
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2212
2212
    hidden=True,
2213
2213
    deprecated=True,
2214
2214
    )
2215
2215
register_metadir(controldir.format_registry, '1.9-rich-root',
2216
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack6RichRoot',
 
2216
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack6RichRoot',
2217
2217
    help='A variant of 1.9 that supports rich-root data '
2218
2218
         '(needed for bzr-svn and bzr-git).',
2219
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2220
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat4',
 
2219
    branch_format='breezy.branch.BzrBranchFormat7',
 
2220
    tree_format='breezy.workingtree_4.WorkingTreeFormat4',
2221
2221
    hidden=True,
2222
2222
    deprecated=True,
2223
2223
    )
2224
2224
register_metadir(controldir.format_registry, '1.14',
2225
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack6',
 
2225
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack6',
2226
2226
    help='A working-tree format that supports content filtering.',
2227
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2228
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat5',
 
2227
    branch_format='breezy.branch.BzrBranchFormat7',
 
2228
    tree_format='breezy.workingtree_4.WorkingTreeFormat5',
2229
2229
    hidden=True,
2230
2230
    deprecated=True,
2231
2231
    )
2232
2232
register_metadir(controldir.format_registry, '1.14-rich-root',
2233
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatKnitPack6RichRoot',
 
2233
    'breezy.repofmt.knitpack_repo.RepositoryFormatKnitPack6RichRoot',
2234
2234
    help='A variant of 1.14 that supports rich-root data '
2235
2235
         '(needed for bzr-svn and bzr-git).',
2236
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2237
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat5',
 
2236
    branch_format='breezy.branch.BzrBranchFormat7',
 
2237
    tree_format='breezy.workingtree_4.WorkingTreeFormat5',
2238
2238
    hidden=True,
2239
2239
    deprecated=True,
2240
2240
    )
2241
2241
# The following un-numbered 'development' formats should always just be aliases.
2242
2242
register_metadir(controldir.format_registry, 'development-subtree',
2243
 
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2aSubtree',
 
2243
    'breezy.repofmt.groupcompress_repo.RepositoryFormat2aSubtree',
2244
2244
    help='Current development format, subtree variant. Can convert data to and '
2245
2245
        'from pack-0.92-subtree (and anything compatible with '
2246
2246
        'pack-0.92-subtree) format repositories. Repositories and branches in '
2247
2247
        'this format can only be read by bzr.dev. Please read '
2248
2248
        'http://doc.bazaar.canonical.com/latest/developers/development-repo.html '
2249
2249
        'before use.',
2250
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2251
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat6',
 
2250
    branch_format='breezy.branch.BzrBranchFormat7',
 
2251
    tree_format='breezy.workingtree_4.WorkingTreeFormat6',
2252
2252
    experimental=True,
2253
2253
    hidden=True,
2254
2254
    alias=False, # Restore to being an alias when an actual development subtree format is added
2256
2256
                 # chk based subtree format.
2257
2257
    )
2258
2258
register_metadir(controldir.format_registry, 'development5-subtree',
2259
 
    'bzrlib.repofmt.knitpack_repo.RepositoryFormatPackDevelopment2Subtree',
 
2259
    'breezy.repofmt.knitpack_repo.RepositoryFormatPackDevelopment2Subtree',
2260
2260
    help='Development format, subtree variant. Can convert data to and '
2261
2261
        'from pack-0.92-subtree (and anything compatible with '
2262
2262
        'pack-0.92-subtree) format repositories. Repositories and branches in '
2263
2263
        'this format can only be read by bzr.dev. Please read '
2264
2264
        'http://doc.bazaar.canonical.com/latest/developers/development-repo.html '
2265
2265
        'before use.',
2266
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2267
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat6',
 
2266
    branch_format='breezy.branch.BzrBranchFormat7',
 
2267
    tree_format='breezy.workingtree_4.WorkingTreeFormat6',
2268
2268
    experimental=True,
2269
2269
    hidden=True,
2270
2270
    alias=False,
2271
2271
    )
2272
2272
 
2273
2273
register_metadir(controldir.format_registry, 'development-colo',
2274
 
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a',
 
2274
    'breezy.repofmt.groupcompress_repo.RepositoryFormat2a',
2275
2275
    help='The 2a format with experimental support for colocated branches.\n',
2276
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2277
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat6',
 
2276
    branch_format='breezy.branch.BzrBranchFormat7',
 
2277
    tree_format='breezy.workingtree_4.WorkingTreeFormat6',
2278
2278
    experimental=True,
2279
2279
    bzrdir_format=BzrDirMetaFormat1Colo,
2280
2280
    )
2284
2284
 
2285
2285
# Finally, the current format.
2286
2286
register_metadir(controldir.format_registry, '2a',
2287
 
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a',
 
2287
    'breezy.repofmt.groupcompress_repo.RepositoryFormat2a',
2288
2288
    help='Format for the bzr 2.0 series.\n'
2289
2289
        'Uses group-compress storage.\n'
2290
2290
        'Provides rich roots which are a one-way transition.\n',
2291
2291
        # 'storage in packs, 255-way hashed CHK inventory, bencode revision, group compress, '
2292
2292
        # 'rich roots. Supported by bzr 1.16 and later.',
2293
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2294
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat6',
 
2293
    branch_format='breezy.branch.BzrBranchFormat7',
 
2294
    tree_format='breezy.workingtree_4.WorkingTreeFormat6',
2295
2295
    experimental=False,
2296
2296
    )
2297
2297
 
2298
2298
# The following format should be an alias for the rich root equivalent 
2299
2299
# of the default format
2300
2300
register_metadir(controldir.format_registry, 'default-rich-root',
2301
 
    'bzrlib.repofmt.groupcompress_repo.RepositoryFormat2a',
2302
 
    branch_format='bzrlib.branch.BzrBranchFormat7',
2303
 
    tree_format='bzrlib.workingtree_4.WorkingTreeFormat6',
 
2301
    'breezy.repofmt.groupcompress_repo.RepositoryFormat2a',
 
2302
    branch_format='breezy.branch.BzrBranchFormat7',
 
2303
    tree_format='breezy.workingtree_4.WorkingTreeFormat6',
2304
2304
    alias=True,
2305
2305
    hidden=True,
2306
2306
    help='Same as 2a.')
2310
2310
controldir.format_registry.set_default(format_name)
2311
2311
 
2312
2312
# XXX 2010-08-20 JRV: There is still a lot of code relying on
2313
 
# bzrlib.bzrdir.format_registry existing. When BzrDir.create/BzrDir.open/etc
 
2313
# breezy.bzrdir.format_registry existing. When BzrDir.create/BzrDir.open/etc
2314
2314
# get changed to ControlDir.create/ControlDir.open/etc this should be removed.
2315
2315
format_registry = controldir.format_registry