Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix SVN 'Working copy text base is corrupt'?

Tags:

repository

svn

After many happy commits to my svn repo, all of the sudden the relationship went sour...svn flipped her lid and yelled: "Working copy text base is corrupt!"

What could have caused this? How do I fix it?

Working copy text base is corrupt
svn: Commit failed (details follow):
svn: Checksum mismatch for '~/blah/.svn/text-  base/sumonet.py.svn-base'; expected: '548b9bb4b24bc580ab8694c583b28013', actual: '8b2b3cf4615de3d8520ae4841b3b0a8b'
like image 544
Niel de Wet Avatar asked Nov 05 '10 09:11

Niel de Wet


4 Answers

This was the error.

svn: E155017: Working copy text base is corrupt
svn: E200014: Checksum mismatch for text base of : '/home/.../exampleFileCorrupted.cpp'
....

CLEAR SOLUTION WHICH WORKED FOR ME SMOOTHLY:

ATTENTION: Copy your file in another file outside of the SVN environment.

cp exampleFileCorrupted.cpp ~/Desktop/

then follow below:

  1. cd to the path in which you have the corrupted file (which is the one indicated after: Checksum mismatch for text base of)
  2. svn rm --force exampleFileCorrupted.cpp

    You will see : D exampleFileCorrupted.cpp

  3. Copy the file you saved before the point 1 in the SVN folder you are in with :

    cp ~/Desktop/exampleFileCorrupted.cpp .

(Don't miss the point at the end which means 'copy here')

  1. Add to svn with : svn add exampleFileCorrupted.cpp

    You will see : A exampleFileCorrupted.cpp

  2. Commit changes: svn commit -m "Commit Message"

Let me know if this helped.

like image 53
desmond13 Avatar answered Nov 11 '22 14:11

desmond13


This works for me:

svn rm --keep-local THE_CORRUPTED_FILE
svn add THE_CORRUPTED_FILE
svn ci
like image 28
geckos Avatar answered Nov 11 '22 16:11

geckos


Just make a separate fresh checkout and copy the changes you made in that old working copy to the new one.

like image 16
khmarbaise Avatar answered Nov 11 '22 14:11

khmarbaise


  1. Copy problematic file in other place,
  2. Delete and commit file in repository,
  3. Copy your file into SVN and commit
like image 16
ryrysz Avatar answered Nov 11 '22 16:11

ryrysz