90
90
# and its there that the core logic is tested.
91
91
tree = self.make_branch_and_tree('tree', format='knit')
92
92
self.build_tree(['tree/file'])
94
94
target = controldir.format_registry.make_controldir('dirstate')
95
95
converter = tree.controldir._format.get_converter(target)
96
96
converter.convert(tree.controldir, None)
97
97
new_tree = workingtree.WorkingTree.open('tree')
98
98
self.assertIs(new_tree.__class__, workingtree_4.WorkingTree4)
101
101
def test_convert_knit_one_parent_dirstate(self):
102
102
# test that asking for an upgrade from knit to dirstate works.