214
215
def test_attribute__fetch_order(self):
215
216
"""Weaves need topological data insertion."""
216
control = bzrdir.BzrDirFormat6().initialize(self.get_url())
217
control = bzrdir_weave.BzrDirFormat6().initialize(self.get_url())
217
218
repo = weaverepo.RepositoryFormat6().initialize(control)
218
219
self.assertEqual('topological', repo._format._fetch_order)
220
221
def test_attribute__fetch_uses_deltas(self):
221
222
"""Weaves do not reuse deltas."""
222
control = bzrdir.BzrDirFormat6().initialize(self.get_url())
223
control = bzrdir_weave.BzrDirFormat6().initialize(self.get_url())
223
224
repo = weaverepo.RepositoryFormat6().initialize(control)
224
225
self.assertEqual(False, repo._format._fetch_uses_deltas)
226
227
def test_attribute__fetch_reconcile(self):
227
228
"""Weave repositories need a reconcile after fetch."""
228
control = bzrdir.BzrDirFormat6().initialize(self.get_url())
229
control = bzrdir_weave.BzrDirFormat6().initialize(self.get_url())
229
230
repo = weaverepo.RepositoryFormat6().initialize(control)
230
231
self.assertEqual(True, repo._format._fetch_reconcile)
232
233
def test_no_ancestry_weave(self):
233
control = bzrdir.BzrDirFormat6().initialize(self.get_url())
234
control = bzrdir_weave.BzrDirFormat6().initialize(self.get_url())
234
235
repo = weaverepo.RepositoryFormat6().initialize(control)
235
236
# We no longer need to create the ancestry.weave file
236
237
# since it is *never* used.
239
240
'ancestry.weave')
241
242
def test_supports_external_lookups(self):
242
control = bzrdir.BzrDirFormat6().initialize(self.get_url())
243
control = bzrdir_weave.BzrDirFormat6().initialize(self.get_url())
243
244
repo = weaverepo.RepositoryFormat6().initialize(control)
244
245
self.assertFalse(repo._format.supports_external_lookups)