Tuesday, October 16, 2007

svn checksum mismatch

Recently I encountered this problem when I was trying to checkout from our svn server.

svn: Checksum mismatch on rep 'q7':

To solve this, do the following:

# Do a dump of the db/representations file: (go to your repository directory
db_dump -kp representations > representations.dump

# Backup the representations.dump file just in case something happens
cp representations.dump representations.dump.bak

# Quoting from the mailing list message: "The dumpfile will contain lines like:
((fulltext 1 7 (md5 16 \fa\85\a5\e3\bdN7\95\03\e8\baq0\ad\9cn)) q7)

Edit the part after '(md5 16 ' to 16 repeats of \00 - the all-zero checksum matches anything. "
((fulltext 1 7 (md5 16 \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00)) q7)

You can try to look for all q7 entries on representations.dump file and change their checksum to 16 \00

q7 is the test i see in the error message I got:
svn: Checksum mismatch on rep 'q7':

# Reload the edited representations file back in using db_load:
db_load representations < representations.dump


Got this help from:
http://ilovett.com/blog/programming/subversion-checksum-error

No comments: