/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/tests/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-08 22:44:11 UTC
  • mfrom: (5705.2.6 branch4-no-metadir)
  • Revision ID: pqm@pqm.ubuntu.com-20110308224411-8ki4micmszepfnna
(jelmer) Avoid using BzrBranchFormat4 in meta directories. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    urlutils,
36
36
    )
37
37
 
 
38
from bzrlib.branch_weave import (
 
39
    BzrBranchFormat4,
 
40
    )
 
41
 
38
42
 
39
43
class TestDefaultFormat(tests.TestCase):
40
44
 
67
71
                         _mod_branch.format_registry.get_default())
68
72
 
69
73
 
 
74
class TestBranchFormat4(tests.TestCaseWithTransport):
 
75
    """Tests specific to branch format 4"""
 
76
 
 
77
    def test_no_metadir_support(self):
 
78
        url = self.get_url()
 
79
        bdir = bzrdir.BzrDirMetaFormat1().initialize(url)
 
80
        bdir.create_repository()
 
81
        self.assertRaises(errors.IncompatibleFormat,
 
82
            BzrBranchFormat4().initialize, bdir)
 
83
 
 
84
    def test_supports_bzrdir_6(self):
 
85
        url = self.get_url()
 
86
        bdir = bzrdir.BzrDirFormat6().initialize(url)
 
87
        bdir.create_repository()
 
88
        BzrBranchFormat4().initialize(bdir)
 
89
 
 
90
 
70
91
class TestBranchFormat5(tests.TestCaseWithTransport):
71
92
    """Tests specific to branch format 5"""
72
93