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():
131
131
self.assertTreeDescription(key)
133
133
def test_describe_checkout_format(self):
134
134
for key in bzrdir.format_registry.keys():
135
if key in ('default', 'weave', 'experimental'):
137
if key.startswith('experimental-'):
138
# these are typically hidden or aliases for other formats
135
if key in bzrdir.format_registry.aliases():
136
# Aliases will not describe correctly in the UI because the
137
# real format is found.
139
# legacy: weave does not support checkouts
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.
141
if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree'):
142
expected = 'dirstate or dirstate-tags'
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-rich-root'):
150
expected = '1.6 or 1.6-rich-root or ' \
151
'dirstate or dirstate-tags or pack-0.92 or'\
152
' rich-root or rich-root-pack'
143
153
if key in ('knit', 'metaweave'):
144
154
expected = 'knit or metaweave'
145
155
self.assertCheckoutDescription(key, expected)
147
157
def test_describe_branch_format(self):
148
158
for key in bzrdir.format_registry.keys():
159
if key in bzrdir.format_registry.aliases():
152
162
if key in ('dirstate', 'knit'):
156
166
def test_describe_repo_format(self):
157
167
for key in bzrdir.format_registry.keys():
168
if key in bzrdir.format_registry.aliases():
161
171
if key in ('dirstate', 'knit', 'dirstate-tags'):