~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Ian Clatworthy
  • Date: 2009-03-31 14:12:27 UTC
  • mto: (4229.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4230.
  • Revision ID: ian.clatworthy@canonical.com-20090331141227-8dr1s44x16j7dina
split filtered views support out into WorkingTreeFormat6

Show diffs side-by-side

added added

removed removed

Lines of Context:
2751
2751
                isinstance(self.target_format.workingtree_format,
2752
2752
                    workingtree_4.WorkingTreeFormat5)):
2753
2753
                workingtree_4.Converter4to5().convert(tree)
 
2754
            if (isinstance(tree, workingtree_4.DirStateWorkingTree) and
 
2755
                not isinstance(tree, workingtree_4.WorkingTree6) and
 
2756
                isinstance(self.target_format.workingtree_format,
 
2757
                    workingtree_4.WorkingTreeFormat6)):
 
2758
                workingtree_4.Converter4or5to6().convert(tree)
2754
2759
        return to_convert
2755
2760
 
2756
2761
 
3344
3349
    )
3345
3350
format_registry.register_metadir('1.14',
3346
3351
    'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack6',
3347
 
    help='A working-tree format that supports views and content filtering.',
 
3352
    help='A working-tree format that supports content filtering.',
3348
3353
    branch_format='bzrlib.branch.BzrBranchFormat7',
3349
3354
    tree_format='bzrlib.workingtree.WorkingTreeFormat5',
3350
3355
    )
3405
3410
    hidden=True,
3406
3411
    experimental=True,
3407
3412
    )
 
3413
# These next two formats should be removed when the gc formats are
 
3414
# updated to use WorkingTreeFormat6 and are merged into bzr.dev
 
3415
format_registry.register_metadir('development-wt6',
 
3416
    'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack6',
 
3417
    help='1.14 with filtered views. '
 
3418
        'Please read '
 
3419
        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
 
3420
        'before use.',
 
3421
    branch_format='bzrlib.branch.BzrBranchFormat7',
 
3422
    tree_format='bzrlib.workingtree.WorkingTreeFormat6',
 
3423
    hidden=True,
 
3424
    experimental=True,
 
3425
    )
 
3426
format_registry.register_metadir('development-wt6-rich-root',
 
3427
    'bzrlib.repofmt.pack_repo.RepositoryFormatKnitPack6RichRoot',
 
3428
    help='A variant of development-wt6 that supports rich-root data '
 
3429
         '(needed for bzr-svn and bzr-git).',
 
3430
    branch_format='bzrlib.branch.BzrBranchFormat7',
 
3431
    tree_format='bzrlib.workingtree.WorkingTreeFormat6',
 
3432
    hidden=True,
 
3433
    experimental=True,
 
3434
    )
3408
3435
# The following format should be an alias for the rich root equivalent 
3409
3436
# of the default format
3410
3437
format_registry.register_metadir('default-rich-root',