143
144
tree_2 = repository.revision_tree(revision_id)
145
146
differ = GitDiffTree.from_trees_options(
146
tree_1, tree_2, contents, 'utf8', None, 'a/', 'b/', None)
147
tree_1, tree_2, contents, 'utf8', None, 'a/', 'b/', None,
147
149
differ.show_diff(None, None)
148
150
write_commit_patch(s, commit, contents.getvalue(), (num, total),