127
127
tree.commit('added file', rev_id='rev1')
129
129
tree.commit('removed file')
131
131
tree.revert(old_tree=tree.branch.repository.revision_tree('rev1'))
135
135
self.assertEqual({}, tree.merge_modified())
137
146
def test_revert_file_in_deleted_dir(self):
138
147
tree = self.make_branch_and_tree('.')
139
148
self.build_tree(['dir/', 'dir/file1', 'dir/file2'])