SVN Checksum Mismatch


Senzon
Member
Registered: 25.05.12 19:13
Timezone: UTC +3
Posts: 17

I suddenly get this weird problem in svn when I try to commit my changes:

svn: Checksum mismatch for '.svn/text-base/functions.php.svn-base';
expected: 'ba2ac9223860c647c8478ffd1ace154e',
actual: 'd2ba75aff51148f535fb4ac77b0333fa'

Any idea how I can fix it?


ynori7
Administrator
Registered: 24.08.11 12:16
Timezone: UTC +2
Posts: 132

I've had this problem before. Subversion is really a pain in the ass sometimes.

The solution is to checkout a fresh copy of your repository and copy the new and valid text-base file to your project's text-base directory. Here's an example (assume the repository is called 'project' and your code lives in /home/username/project):

cd /tmp
svn co https://path-to-your-repository/project
cd /home/username/project
chmod +w .svn/text-base/functions.php.svn-base
cp /tmp/project/.svn/text-base/functions.php.svn-base .svn/text-base/
chmod -w .svn/text-base/functions.php.svn-base

i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg


Senzon
Member
Registered: 25.05.12 19:13
Timezone: UTC +3
Posts: 17

Nice, that seemed to fix my problem. Thanks!

Does anyone know why this problem occurs though?