<s> from trac . versioncontrol . cache import CACHE_YOUNGEST_REV <EOL> def do_upgrade ( env , ver , cursor ) : <EOL> """<STR_LIT>""" <EOL> youngest = '<STR_LIT>' <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> for repository_dir , in cursor : <EOL> if repository_dir . startswith ( '<STR_LIT>' ) : <EOL> cursor . execute ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> row = cursor . fetchone ( ) <EOL> youngest = row and row [ <NUM_LIT:0> ] or '<STR_LIT>' <EOL> else : <EOL> print ( '<STR_LIT>' ) <EOL> cursor . execute ( "<STR_LIT>" , <EOL> ( CACHE_YOUNGEST_REV , ) ) <EOL> cursor . execute ( "<STR_LIT>" , <EOL> ( CACHE_YOUNGEST_REV , youngest ) ) </s>
