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

  • Committer: Robert Collins
  • Date: 2007-11-27 20:35:02 UTC
  • mfrom: (3036 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3038.
  • Revision ID: robertc@robertcollins.net-20071127203502-280mxe1zvdlagrpe
Merge with bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from cStringIO import StringIO
31
31
import os
 
32
import sys
32
33
 
33
34
from bzrlib.lazy_import import lazy_import
34
35
lazy_import(globals(), """
48
49
    symbol_versioning,
49
50
    ui,
50
51
    urlutils,
 
52
    win32utils,
 
53
    workingtree,
 
54
    workingtree_4,
51
55
    xml4,
52
56
    xml5,
53
 
    workingtree,
54
 
    workingtree_4,
55
57
    )
56
58
from bzrlib.osutils import (
57
59
    sha_strings,
1355
1357
                                      # FIXME: RBC 20060121 don't peek under
1356
1358
                                      # the covers
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()
1718
1722
 
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
1722
1726
 
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',
2489
2493
    )
 
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'
 
2497
        ' bzr < 1.0',
 
2498
    branch_format='bzrlib.branch.BzrBranchFormat6',
 
2499
    tree_format='bzrlib.workingtree.WorkingTreeFormat4',
 
2500
    hidden=False,
 
2501
    )
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',
2497
2509
    hidden=True,
2498
2510
    )
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,
2509
2522
    )
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',
 
2533
    hidden=True,
 
2534
    experimental=True,
 
2535
    )
 
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',
2519
 
    hidden=True,
 
2545
    hidden=False,
2520
2546
    experimental=True,
2521
2547
    )
2522
2548
format_registry.set_default('dirstate-tags')