#NEWLINE# def __getParentsListForVersion( self , hash , resultsSoFar ) : #NEWLINE# #INDENT# if ( hash in resultsSoFar ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# if ( hash not in self . commitParents ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# results = [ hash ] #NEWLINE# for p in self . commitParents [ hash ] : #NEWLINE# #INDENT# if ( p not in self . versionsByGitHash ) : #NEWLINE# #INDENT# results = ( results + self . __getParentsListForVersion ( p , ( resultsSoFar + results ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return results