HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/trac/upgrades/__pycache__/db20.cpython-310.pyc
o

�k�`��@sddlmZdd�ZdS)�)�CACHE_YOUNGEST_REVcCsrd}|�d�|D]\}|�d�r#|�d�|��}|r |dp!d}q	td�q	|�dtf�|�dt|f�d	S)
z�Modify 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�
startswith�fetchone�printr)�env�ver�cursor�youngest�repository_dir�row�r�4/usr/lib/python3/dist-packages/trac/upgrades/db20.py�
do_upgrades




��rN)�trac.versioncontrol.cacherrrrrr�<module>s