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

  • Committer: Martin Pool
  • Date: 2007-02-21 05:34:56 UTC
  • mfrom: (2296 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2309.
  • Revision ID: mbp@sourcefrog.net-20070221053456-vyr6o0ehqnbetrvb
merge trunk, in particular new Branch6 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
            ' repositories', deprecated=True)
72
72
        my_format_registry.register_lazy('lazy', 'bzrlib.bzrdir', 
73
73
            'BzrDirFormat6', 'Format registered lazily', deprecated=True)
74
 
        my_format_registry.register_metadir('knit', 'RepositoryFormatKnit1',
 
74
        my_format_registry.register_metadir('knit',
 
75
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit1',
75
76
            'Format using knits',
76
 
            repo_module='bzrlib.repofmt.knitrepo')
 
77
            )
77
78
        my_format_registry.set_default('knit')
78
 
        my_format_registry.register_metadir('experimental-knit2',
79
 
                                            'RepositoryFormatKnit2',
80
 
            'Experimental successor to knit.  Use at your own risk.',
81
 
            repo_module='bzrlib.repofmt.knitrepo')
 
79
        my_format_registry.register_metadir(
 
80
            'experimental-knit2',
 
81
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit2',
 
82
            'Experimental successor to knit.  Use at your own risk.',
 
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')
82
89
        return my_format_registry
83
90
 
84
91
    def test_format_registry(self):
93
100
        my_bzrdir = my_format_registry.make_bzrdir('knit')
94
101
        self.assertIsInstance(my_bzrdir.repository_format, 
95
102
            knitrepo.RepositoryFormatKnit1)
 
103
        my_bzrdir = my_format_registry.make_bzrdir('branch6')
 
104
        self.assertIsInstance(my_bzrdir.get_branch_format(),
 
105
                              bzrlib.branch.BzrBranchFormat6)
96
106
 
97
107
    def test_get_help(self):
98
108
        my_format_registry = self.make_format_registry()