~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: 2007-03-07 10:45:44 UTC
  • mfrom: (2321.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070307104544-59e3e6358e4bdb29
(robertc) Merge dirstate and subtrees. (Robert Collins, Martin Pool, Aaaron Bentley, John A Meinel, James Westby)

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
        self.assertRaises(KeyError, repository._unescape_xml, 'foo&bar;') 
454
454
 
455
455
 
456
 
class TestRepositoryFormatKnit2(TestCaseWithTransport):
 
456
class TestRepositoryFormatKnit3(TestCaseWithTransport):
457
457
 
458
458
    def test_convert(self):
459
459
        """Ensure the upgrade adds weaves for roots"""
465
465
        self.assertRaises(errors.NoSuchFile, revision_tree.get_file_lines,
466
466
            revision_tree.inventory.root.file_id)
467
467
        format = bzrdir.BzrDirMetaFormat1()
468
 
        format.repository_format = knitrepo.RepositoryFormatKnit2()
 
468
        format.repository_format = knitrepo.RepositoryFormatKnit3()
469
469
        upgrade.Convert('.', format)
470
470
        tree = workingtree.WorkingTree.open('.')
471
471
        revision_tree = tree.branch.repository.revision_tree('dull')