#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# self . object = self . get_object ( ) #NEWLINE# kwargs = super ( CommitView , self ) . get_context_data ( ** kwargs ) #NEWLINE# kwargs [ 'title' ] = _ ( 'Commit Changes' ) #NEWLINE# kwargs [ 'tracker' ] = self . object #NEWLINE# kwargs [ 'site' ] = self . site #NEWLINE# kwargs [ 'commit_url' ] = self . site . reverse ( self . site . commit_view , kwargs = { #NEWLINE# #INDENT# 'pk' : self . object . pk , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( not self . has_permission ( self . object ) ) : #NEWLINE# #INDENT# kwargs [ 'permission_error_message' ] = self . permission_error_message #NEWLINE# #UNINDENT# if self . object . head : #NEWLINE# #INDENT# kwargs [ 'diff_urls' ] = self . get_diff_urls ( self . object . working_copy , kwargs . object . head . root_node ) #NEWLINE# #UNINDENT# kwargs [ 'changed_anything' ] = ( lambda : self . object . has_changes ( ) ) #NEWLINE# return kwargs