Today I went to do a checkin on svn and got the following:

svn: Base checksum mismatch on '/trunk/sites/mysite.com/framework/application/views/main_layout_header.php':
expected: 481f0430e5f320350e138b96c59141de
actual: 3b42d820bf099c3995f4acc02aabe991

This means my local svn db info has been corrupted. I tried removing the file, doing an svn up and then a checkin thinking this would work. This does not!

SOLUTION: What you need to do is remove the entire parent directory (WORKING_DIR/sites/mysite.com/framework/application/views). In my specific instance I made a local copy of the file main_layout_header.php and then deleted it with “rm main_layout_header.php”. I did an svn up, then a checking. This checked in all my modified files with an unmodified original version of main layout_header.php. Then I deleted the directory (WORKING_DIR/sites/mysite.com/framework/application/views), did an svn up. Then immediately do a check in to make sure it works! At this point I copied back my modified main_layout_header back into the views directory and performed an svn up!

1 thought on “svn: Base checksum mismatch”

  1. Hi,

    I had the same problem twice. First time did exactly what you sugested, the second was a bit more complicated because my parent dir had several subdirecotories. So I tried to just erase the problematic file, commit the directory, restore a local copy of the file and commit again. Worked just as well. 🙂

Leave a Comment

Your email address will not be published. Required fields are marked *