1355
1357
# FIXME: RBC 20060121 don't peek under
1357
1359
mode=temp_control._dir_mode)
1360
if sys.platform == 'win32' and isinstance(transport, LocalTransport):
1361
win32utils.set_file_attr_hidden(transport._abspath('.bzr'))
1358
1362
file_mode = temp_control._file_mode
1359
1363
del temp_control
1360
1364
mutter('created control directory in ' + transport.base)
1717
1721
return RepositoryFormat.get_default_format()
1719
1723
def __set_repository_format(self, value):
1720
"""Allow changint the repository format for metadir formats."""
1724
"""Allow changing the repository format for metadir formats."""
1721
1725
self._repository_format = value
1723
1727
repository_format = property(__return_repository_format, __set_repository_format)
2487
2491
branch_format='bzrlib.branch.BzrBranchFormat6',
2488
2492
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2494
format_registry.register_metadir('rich-root',
2495
'bzrlib.repofmt.knitrepo.RepositoryFormatKnit4',
2496
help='New in 1.0. Better handling of tree roots. Incompatible with'
2498
branch_format='bzrlib.branch.BzrBranchFormat6',
2499
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2490
2502
format_registry.register_metadir('dirstate-with-subtree',
2491
2503
'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
2492
2504
help='New in 0.15: Fast local operations and improved scaling for '
2496
2508
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2499
format_registry.register_metadir('knitpack-experimental',
2511
format_registry.register_metadir('pack-0.92',
2500
2512
'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack1',
2501
2513
help='New in 0.92: Pack-based format with data compatible with '
2502
2514
'dirstate-tags format repositories. Interoperates with '
2503
2515
'bzr repositories before 0.92 but cannot be read by bzr < 0.92. '
2504
'NOTE: This format is experimental. Before using it, please read '
2505
'http://doc.bazaar-vcs.org/latest/developers/knitpack.html.',
2516
'Previously called knitpack-experimental. '
2517
'For more information, see '
2518
'http://doc.bazaar-vcs.org/latest/developers/packrepo.html.',
2506
2519
branch_format='bzrlib.branch.BzrBranchFormat6',
2507
2520
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2508
2521
experimental=True,
2510
format_registry.register_metadir('knitpack-subtree-experimental',
2523
format_registry.register_metadir('pack-0.92-subtree',
2511
2524
'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack3',
2512
2525
help='New in 0.92: Pack-based format with data compatible with '
2513
2526
'dirstate-with-subtree format repositories. Interoperates with '
2514
2527
'bzr repositories before 0.92 but cannot be read by bzr < 0.92. '
2528
'Previously called knitpack-experimental. '
2529
'For more information, see '
2530
'http://doc.bazaar-vcs.org/latest/developers/packrepo.html.',
2531
branch_format='bzrlib.branch.BzrBranchFormat6',
2532
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2536
format_registry.register_metadir('rich-root-pack',
2537
'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack4',
2538
help='New in 1.0: Pack-based format with data compatible with '
2539
'rich-root format repositories. Interoperates with '
2540
'bzr repositories before 0.92 but cannot be read by bzr < 1.0. '
2515
2541
'NOTE: This format is experimental. Before using it, please read '
2516
2542
'http://doc.bazaar-vcs.org/latest/developers/knitpack.html.',
2517
2543
branch_format='bzrlib.branch.BzrBranchFormat6',
2518
2544
tree_format='bzrlib.workingtree.WorkingTreeFormat4',
2520
2546
experimental=True,
2522
2548
format_registry.set_default('dirstate-tags')