[merge] split out repository formats
Martin Pool
mbp at sourcefrog.net
Thu Feb 15 00:35:20 GMT 2007
Aaron Bentley wrote:
> Martin Pool wrote:
>
>> I know there might be textual clashes but the interface required of a
>> new Repository format is still very similar. You don't even need
>> strictly need to move it, though that would be more consistent.
>
> Why did you remove the metaweave tests from test_bzrdir.TestFormatRegistry?
>
No good reason, I think I just meant to take them out while working out
how to lazy-load repositories from metadir formats. I can apply this to
put it back if you like:
=== modified file 'bzrlib/tests/test_bzrdir.py'
--- bzrlib/tests/test_bzrdir.py 2007-02-14 07:10:27 +0000
+++ bzrlib/tests/test_bzrdir.py 2007-02-15 00:31:00 +0000
@@ -76,6 +76,9 @@
'Format using knits',
)
my_format_registry.set_default('knit')
+ my_format_registry.register_metadir('metaweave',
+ 'bzrlib.repofmt.weaverepo.RepositoryFormat7',
+ 'Transitional format in 0.8. Slower than knit.',
deprecated=True)
my_format_registry.register_metadir(
'experimental-knit2',
'bzrlib.repofmt.knitrepo.RepositoryFormatKnit2',
@@ -95,6 +98,9 @@
my_bzrdir = my_format_registry.make_bzrdir('knit')
self.assertIsInstance(my_bzrdir.repository_format,
knitrepo.RepositoryFormatKnit1)
+ my_bzrdir = my_format_registry.make_bzrdir('metaweave')
+ self.assertIsInstance(my_bzrdir.repository_format,
+ weaverepo.RepositoryFormat7)
def test_get_help(self):
my_format_registry = self.make_format_registry()
--
Martin
More information about the bazaar
mailing list