~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-03-14 05:08:55 UTC
  • mfrom: (1551.13.2 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070314050855-7241ac88a0577101
Hide dirstate-with-subtree, introduce dirstate-tags

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
82
82
            'Experimental successor to knit.  Use at your own risk.',
83
83
            branch_format='bzrlib.branch.BzrBranchFormat6')
 
84
        my_format_registry.register_metadir(
 
85
            'hidden format',
 
86
            'bzrlib.repofmt.knitrepo.RepositoryFormatKnit3',
 
87
            'Experimental successor to knit.  Use at your own risk.',
 
88
            branch_format='bzrlib.branch.BzrBranchFormat6', hidden=True)
 
89
        my_format_registry.register('hiddenweave', bzrdir.BzrDirFormat6,
 
90
            'Pre-0.8 format.  Slower and does not support checkouts or shared'
 
91
            ' repositories', hidden=True)
 
92
        my_format_registry.register_lazy('hiddenlazy', 'bzrlib.bzrdir',
 
93
            'BzrDirFormat6', 'Format registered lazily', deprecated=True,
 
94
            hidden=True)
84
95
        return my_format_registry
85
96
 
86
97
    def test_format_registry(self):
122
133
            '  knit/default:\n    \(native\) Format using knits\n')
123
134
        self.assertContainsRe(deprecated, 
124
135
            '  lazy:\n    \(native\) Format registered lazily\n')
 
136
        self.assertNotContainsRe(new, 'hidden')
125
137
 
126
138
    def test_set_default_repository(self):
127
139
        default_factory = bzrdir.format_registry.get('default')