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