452
453
self.assertRaises(KeyError, repository._unescape_xml, 'foo&bar;')
458
459
"""Ensure the upgrade adds weaves for roots"""
459
460
format = bzrdir.BzrDirMetaFormat1()
461
462
tree = self.make_branch_and_tree('.', format)
462
463
tree.commit("Dull commit", rev_id="dull")
463
464
revision_tree = tree.branch.repository.revision_tree('dull')
464
465
self.assertRaises(errors.NoSuchFile, revision_tree.get_file_lines,
465
466
revision_tree.inventory.root.file_id)
466
467
format = bzrdir.BzrDirMetaFormat1()
468
469
upgrade.Convert('.', format)
469
470
tree = workingtree.WorkingTree.open('.')
470
471
revision_tree = tree.branch.repository.revision_tree('dull')