Saturday 1 March 2008

Fix for Subversion problem: Error - Checksum Mismatch for 'FileName' expected 'XXXXX-XXXX' actual 'XXXX-XXXX'

I got this error today when my client relocated our subversion repository to Atlanta...I don't really need to go into how much I dislike subversion. Naturally, things like this wouldn't happen with MS Team Foundation Server (TFS)! :o)

When I got the problem, deleting the files mentioned in the error didn't work. This is because the problem actually lies in the "entries" file in the hidden .svn or _svn directories. So you can either:
  1. Blow away the bad svn folder by deleting it in your working copy and do an update. If all your folders have the issue, the simplest way is to recursively delete all svn folders (See http://ddkonline.blogspot.com/2008/02/reg-file-to-allow-delete-of-all-svn.html
    and rename the folder. Then do an SVN update and do a folder compare with a tool like the stellar Araxis Merge (http://www.araxis.com/merge/index.html) to check all changes are in or need to be reapplied.

  2. (OR if you have local changes), follow the post below:

    http://glob.bushi.net.nz/glob/2007/02/14/subversion-checksum-mismatch-easy-workaround/


    I discovered an alternate solution to the checksum mismatch problem.
    If we say the problem is in _templates.php, then you need to edit the ‘entries’ file in the .svn folder of that file.

    This file could look like this:
    .
    .
    ^L
    _templates.php
    file

    2007-08-22T12:26:44.000000Z
    5e1bdc7a206840b14c984e95c9c95c39
    2007-08-21T22:28:44.968799Z
    410
    hans
    ^L
    gamingzone.php
    .
    .

    From ‘entries’ you need to delete from the line _templates.php down to the line before gamingzone.php. Save, rename _templates.php and do svn update, and everything should be fine again.

    Hope this helps someone.

8 comments:

Orion said...

It did help a lot. Thanks !

bunwich said...

Good stuff. Worked for me.

microraptor said...

Tried a number of proposed solutions without success. This one worked. Thanks.

Anonymous said...

Hello
http://decenterprises.com/ - cheap soma
Keep them from moisture and heat.
[url=http://decenterprises.com/]soma without prescription[/url]

Soma is used to treat muscle spasms, injuries and other painful musculoskeletal conditions.
buy carisoprodol
Never double up the dose just to catch up the missed one.

dvdplm said...

Tried this and many other solutions. Nothing worked. On a whim I upgraded subversion from 1.4.2 to 1.6.6. Fixed it!

cheesegrits said...

Thanks! I tried the usual 'copy the text-base files from a fresh checkout' to no avail. This trick worked like a charm.

Tina said...
This comment has been removed by the author.
Tina said...

Thanks so much!!! Figuring out exactly what to remove from the .entries file was a little confusing but once I deleted the correct lines it worked perfectly :o)