#NEWLINE# def raw_commit_diff( self , commit ) : #NEWLINE# #INDENT# if commit . parents : #NEWLINE# #INDENT# parent_tree = self [ commit . parents [ 0 ] ] . tree #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# parent_tree = None #NEWLINE# #UNINDENT# bytesio = io . BytesIO ( ) #NEWLINE# dulwich . patch . write_tree_diff ( bytesio , self . object_store , parent_tree , commit . tree ) #NEWLINE# return bytesio . getvalue ( )