~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Martin Pool
  • Date: 2007-02-07 09:11:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070207091131-458fw18bgytvaz7t
Move Knit repositories into the submodule bzrlib.repofmt.knitrepo and
lazily load from the registry.

InterRepo._matching_repo_format is now a method not a class field so that
it can load repositories when we need them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        corresponding filename, parent, contents or other changes.
125
125
        """
126
126
        knit1_format = bzrdir.BzrDirMetaFormat1()
127
 
        knit1_format.repository_format = repository.RepositoryFormatKnit1()
 
127
        knit1_format.repository_format = knitrepo.RepositoryFormatKnit1()
128
128
        knit2_format = bzrdir.BzrDirMetaFormat1()
129
129
        knit2_format.repository_format = knitrepo.RepositoryFormatKnit2()
130
130
        # we start with a knit1 repository because that causes the