~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: Martin Pool
  • Date: 2007-10-12 08:00:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2913.
  • Revision ID: mbp@sourcefrog.net-20071012080007-vf80woayyom8s8e1
Rename update_to_one_parent_via_delta to more wieldy update_basis_by_delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
    def test_describe_tree_format(self):
128
128
        for key in bzrdir.format_registry.keys():
129
 
            if key in bzrdir.format_registry.aliases():
 
129
            if key == 'default':
130
130
                continue
131
131
            self.assertTreeDescription(key)
132
132
 
133
133
    def test_describe_checkout_format(self):
134
134
        for key in bzrdir.format_registry.keys():
135
 
            if key in bzrdir.format_registry.aliases():
136
 
                # Aliases will not describe correctly in the UI because the
137
 
                # real format is found.
138
 
                continue
139
 
            # legacy: weave does not support checkouts
140
 
            if key == 'weave':
141
 
                continue
142
 
            if bzrdir.format_registry.get_info(key).experimental:
143
 
                # We don't require that experimental formats support checkouts
144
 
                # or describe correctly in the UI.
 
135
            if key in ('default', 'weave', 'experimental'):
 
136
                continue
 
137
            if key.startswith('experimental-'):
 
138
                # these are typically hidden or aliases for other formats
145
139
                continue
146
140
            expected = None
147
 
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree',
148
 
                'pack-0.92', 'pack-0.92-subtree', 'rich-root',
149
 
                'rich-root-pack', '1.6', '1.6.1-rich-root'):
150
 
                expected = '1.6 or 1.6.1-rich-root or ' \
151
 
                    'dirstate or dirstate-tags or pack-0.92 or'\
152
 
                    ' rich-root or rich-root-pack'
 
141
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree'):
 
142
                expected = 'dirstate or dirstate-tags'
153
143
            if key in ('knit', 'metaweave'):
154
144
                expected = 'knit or metaweave'
155
145
            self.assertCheckoutDescription(key, expected)
156
146
 
157
147
    def test_describe_branch_format(self):
158
148
        for key in bzrdir.format_registry.keys():
159
 
            if key in bzrdir.format_registry.aliases():
 
149
            if key == 'default':
160
150
                continue
161
151
            expected = None
162
152
            if key in ('dirstate', 'knit'):
165
155
 
166
156
    def test_describe_repo_format(self):
167
157
        for key in bzrdir.format_registry.keys():
168
 
            if key in bzrdir.format_registry.aliases():
 
158
            if key == 'default':
169
159
                continue
170
160
            expected = None
171
161
            if key in ('dirstate', 'knit', 'dirstate-tags'):