~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-11 21:09:14 UTC
  • mfrom: (5712.4.12 bzrdir-weave)
  • Revision ID: pqm@pqm.ubuntu.com-20110311210914-acqxl3g7wkn5cklo
(jelmer) Move weave-era BzrDir formats into a separate module. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    )
48
48
from bzrlib import (
49
49
    bzrdir,
 
50
    bzrdir_weave,
50
51
    errors,
51
52
    inventory,
52
53
    osutils,
213
214
 
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)
219
220
 
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)
225
226
 
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)
231
232
 
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')
240
241
 
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)
245
246