def diff_tree(repo, old_tree, new_tree, outstream=sys.stdout):
 with open_repo_closing(repo) as r:
  write_tree_diff(outstream, r.object_store, old_tree, new_tree)

def diff_tree ( repo , old_tree , new_tree , outstream = sys . stdout ) : with open_repo_closing ( repo ) as r : write_tree_diff ( outstream , r . object_store , old_tree , new_tree )
compares the content and mode of blobs found via two tree objects .