Fix “svn: Checksum mismatch…” problem
Subversion June 28th, 2007
Just a while ago, when I try to update from SVN repository, an error happened:
$ svn update main
svn: Checksum mismatch for ‘main/tako-repository-logic/.svn/text-base/project.properties.svn-base’; expected: ‘ea8835ae69173d10e5a1519e5fa8284e’, actual: ‘59f10af8158532e7ddf8d03cbc9cfba4′
Google this problem it seemed many people meet similar problem, however most of them seemed just asking for help, not too many workable answers over there.
It’s very possible that some file was corrupt in the disk, so SVN refuse to continue the work. I fix this problem by first rename the directory contain problem file(s), and the run SVN again to check out the fresh copy. If no further problem, I just delete the old renamed directory which contain corrupt files.
$mv main/tako-repository-logic main/tako-respository-logic.bak
$svn update main
…
U main
Updated to revision 17719.$rm -r main/respository-logic.bak
Since this is a update action, I can just delete the back up folder, if the folder contain some uncommitted files, we will need to synchronize those files to new checked out folder.
UPDATE: found a blog post “subversion checksum mismatch - easy workaround“, same problem, similar solution.
Popularity: 10% [?]
About
…the people have a right to keep and bear arms. PATRICK HENRY AND GEORGE MASON, Elliot, Debates at 185
A woman is an occasional pleasure but a cigar is always a smoke — Groucho Marx