SVN Repo gets Corrupted After Modifying a File

Posted by Ultimitehand@reddit | sysadmin | View on Reddit | 10 comments

I'm having an issue within my SVN repository where the repository gets corrupted after a specific file is modified.

When running cleanup, I received this error:

Pristine text '1e31eea346ad02dcea5c898d284aff674a397ac7' not present

I connected to wc.db and found that this text points to a specific file (e.g. hello.php).

Query Used

SELECT * FROM nodes WHERE checksum LIKE '%<pristine file>%'

I deleted hello.php, ran cleanup and reverted the file, SVN repository started working normally again.

I then tried to edit hello.php, to add any text (the issue happens on modification, regardless of changes made).

Immediately, the same error appears again.

I can resolve the issue by deleting and then reverting the file, but the moment this file is modified, the error occurs again.

Does anyone know what might be the issue and how can I resolve it?