139
142
lhs_parent = _mod_revision.NULL_REVISION
140
143
tree_1 = repository.revision_tree(lhs_parent)
141
144
tree_2 = repository.revision_tree(revision_id)
143
146
differ = GitDiffTree.from_trees_options(tree_1, tree_2,
144
147
contents, 'utf8', None, 'a/', 'b/', None)
145
148
differ.show_diff(None, None)
146
149
write_commit_patch(s, commit, contents.getvalue(), (num, total),
149
152
return summary, s.getvalue()