#NEWLINE# def get_history_for_file( self , file_id ) : #NEWLINE# #INDENT# history = [ file_id ] #NEWLINE# previous = self . get_previous_renamed_files ( [ file_id ] ) #NEWLINE# while previous : #NEWLINE# #INDENT# if all ( ( ( p in history ) for p in previous ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# history . extend ( previous ) #NEWLINE# previous = self . get_previous_renamed_files ( p ) #NEWLINE# #UNINDENT# return history