~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-11 04:33:12 UTC
  • mto: (5582.12.2 weave-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110111043312-g4wx6iuf9662f36d
Move weave formats into bzrlib.plugins.weave_fmt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
from bzrlib.repofmt import (
58
58
    groupcompress_repo,
59
59
    pack_repo,
60
 
    weaverepo,
61
60
    )
62
61
from bzrlib.symbol_versioning import (
63
62
    deprecated_function,
561
560
    def test_make_branch_and_memory_tree_with_format(self):
562
561
        """make_branch_and_memory_tree should accept a format option."""
563
562
        format = bzrdir.BzrDirMetaFormat1()
564
 
        format.repository_format = weaverepo.RepositoryFormat7()
 
563
        format.repository_format = repository.RepositoryFormat.get_default_format()
565
564
        tree = self.make_branch_and_memory_tree('dir', format=format)
566
565
        # Guard against regression into MemoryTransport leaking
567
566
        # files to disk instead of keeping them in memory.
581
580
        # Use a repo layout that doesn't conform to a 'named' layout, to ensure
582
581
        # that the format objects are used.
583
582
        format = bzrdir.BzrDirMetaFormat1()
584
 
        repo_format = weaverepo.RepositoryFormat7()
 
583
        repo_format = repository.RepositoryFormat.get_default_format()
585
584
        format.repository_format = repo_format
586
585
        builder = self.make_branch_builder('dir', format=format)
587
586
        the_branch = builder.get_branch()