#NEWLINE# def update_checkout_version( self , app = '' ) : #NEWLINE# #INDENT# checkout_key = '__checkout_version_' #NEWLINE# action_key = ( checkout_key + app ) #NEWLINE# tag_key = ( action_key + '_taghash' ) #NEWLINE# annotation_key = ( action_key + '_annotationhash' ) #NEWLINE# action_annotation_key = ( action_key + '_actionannotationhash' ) #NEWLINE# deletekeys = [ action_key , tag_key , annotation_key , action_annotation_key ] #NEWLINE# for key in deletekeys : #NEWLINE# #INDENT# while self . db_has_annotation_with_key ( key ) : #NEWLINE# #INDENT# a = self . db_get_annotation_by_key ( key ) #NEWLINE# self . db_delete_annotation ( a ) #NEWLINE# #UNINDENT# #UNINDENT# value = self . hashAnnotations ( ) #NEWLINE# self . set_annotation ( annotation_key , value ) #NEWLINE# value = self . hashActionAnnotations ( ) #NEWLINE# self . set_annotation ( action_annotation_key , value ) #NEWLINE# if ( len ( self . db_actions ) == 0 ) : #NEWLINE# #INDENT# value = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = max ( ( v . db_id for v in self . db_actions ) ) #NEWLINE# #UNINDENT# self . set_annotation ( action_key , value ) #NEWLINE# self . set_annotation ( tag_key , self . hashTags ( ) )