#NEWLINE# def add_new_references( self , git2db , repo_id ) : #NEWLINE# #INDENT# for reference in self . querier . get_references ( ) : #NEWLINE# #INDENT# reference_name = reference [ 0 ] #NEWLINE# reference_type = reference [ 1 ] #NEWLINE# if ( ( reference_name not in self . existing_refs ) and ( reference_name != 'origin/HEAD' ) ) : #NEWLINE# #INDENT# if self . before_date : #NEWLINE# #INDENT# commits = self . querier . collect_all_commits_before_date ( reference_name , self . before_date ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# commits = self . querier . collect_all_commits ( reference_name ) #NEWLINE# #UNINDENT# git2db . analyse_reference ( reference_name , reference_type , repo_id ) #NEWLINE# git2db . analyse_commits ( commits , reference_name , repo_id ) #NEWLINE# #UNINDENT# #UNINDENT# return