subversion checksum mismatch - easy workaround

31 views
Skip to first unread message

新鲜事

unread,
Jul 4, 2011, 5:44:24 AM7/4/11
to liul...@googlegroups.com, magentocomme...@blogger.com, phped...@post.livejournal.com
ere's how we check out a second copy of the relevant directory, and swap it in. optionally then copying over any other corrupted files etc. you may need to add salt or sugar to suit your specific situation (ie, in my example, there are no subdirectories blocked by the corrupted file)

PROBLEM: i can't check in the file 'lib/objects/blah.ext' because i get the error:
svn: Checksum mismatch for '.svn/text-base/blah.ext'; expected: 'f8d45250f7df5561635854165862fdd8', actual: '644f85c4befa671150c5c6ec5fad9885'

first i checked in all the files that didn't complain
cd lib/objects # go where the corrupted file is
grep url .svn/entries # get the svn path of that specific corrupted file's parent dir
url="svn+ssh://xris@teacup/svnpath/lib/objects"

cd /tmp # go somewhere we can play
svn co svn+ssh://xris@teacup/svnpath/lib/objects . # check out a fresh copy of that dir
cd - ; cd .. # go back to lib/objects, then up a dir
mv objects /tmp/objects.orig # move the updated files to /tmp/
mv /tmp/objects objects # move the fresh svn repos into your work dir
svn update # just to be sure it works
cp /tmp/objects.orig/blah.ext objects/ # move your updated blah.ext file back into your work dir

now look. you can't just copy and paste the above, you know. i'm telling you how i fixed it for me, because the other instructions linked above yakked on about a representations file that i just plain don't have .... so rather than fixing the MD5 entries in the DB, i just forced SVN to give me a fresh copy of the MD5 files for the lot.

i hope  can help you! thanks

 

View this post on my blog: http://www.liulizhi.info/subversion-checksum-mismatch-easy-workaround/


Reply all
Reply to author
Forward
0 new messages