~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-15 15:11:31 UTC
  • mfrom: (2230.3.55 branch6)
  • Revision ID: pqm@pqm.ubuntu.com-20070215151131-1f2ce67d76e40200
Provide new branch6 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit2',
82
82
            'Experimental successor to knit.  Use at your own risk.',
83
83
            )
 
84
        my_format_registry.register_metadir(
 
85
            'branch6',
 
86
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit2',
 
87
            'Experimental successor to knit.  Use at your own risk.',
 
88
            branch_format='BzrBranchFormat6')
84
89
        return my_format_registry
85
90
 
86
91
    def test_format_registry(self):
95
100
        my_bzrdir = my_format_registry.make_bzrdir('knit')
96
101
        self.assertIsInstance(my_bzrdir.repository_format, 
97
102
            knitrepo.RepositoryFormatKnit1)
 
103
        my_bzrdir = my_format_registry.make_bzrdir('branch6')
 
104
        self.assertIsInstance(my_bzrdir.get_branch_format(),
 
105
                              bzrlib.branch.BzrBranchFormat6)
98
106
 
99
107
    def test_get_help(self):
100
108
        my_format_registry = self.make_format_registry()