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

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


This works for me:

svn rm --keep-local THE_CORRUPTED_FILE
svn add THE_CORRUPTED_FILE
svn ci

  1. Copy problematic file in other place,
  2. Delete and commit file in repository,
  3. Copy your file into SVN and commit

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.

Tags:

Svn

Repository