~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Aaron Bentley
  • Date: 2006-08-24 15:49:07 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1997.
  • Revision ID: abentley@panoramicfeedback.com-20060824154907-67295a1f6ed299b5
Better fix for convesion test

Show diffs side-by-side

added added

removed removed

Lines of Context:
443
443
 
444
444
    def test_convert(self):
445
445
        """Ensure the upgrade adds weaves for roots"""
446
 
        
447
 
        old_format = repository.RepositoryFormat.get_default_format()
448
 
        repository.RepositoryFormat.set_default_format(
449
 
            repository.RepositoryFormatKnit1())
450
 
        tree = self.make_branch_and_tree('.')
451
 
        repository.RepositoryFormat.set_default_format(old_format)
 
446
        format = bzrdir.BzrDirMetaFormat1()
 
447
        format.repository_format = repository.RepositoryFormatKnit1()
 
448
        tree = self.make_branch_and_tree('.', format)
452
449
        tree.commit("Dull commit", rev_id="dull")
453
450
        revision_tree = tree.branch.repository.revision_tree('dull')
454
451
        self.assertRaises(errors.NoSuchFile, revision_tree.get_file_lines,