o k`@sddlmZddZdS))CACHE_YOUNGEST_REVcCsrd}|d|D]\}|dr#|d|}|r |dp!d}q tdq |dtf|dt|fd S) zModify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicitly store the youngest rev in the cache. z4SELECT value FROM system WHERE name='repository_dir'zsvn:z@SELECT rev FROM revision ORDER BY -LENGTH(rev), rev DESC LIMIT 1rz8Please perform a "repository resync" after this upgrade.z DELETE FROM system WHERE name=%sz0INSERT INTO system (name, value) VALUES (%s, %s)N)execute startswithfetchoneprintr)envvercursoryoungestrepository_dirrowr4/usr/lib/python3/dist-packages/trac/upgrades/db20.py do_upgrades     rN)trac.versioncontrol.cacherrrrrrs