Cannot resolve Subversion 1.7 checksum mismatch error on update

Neil Steiner picture Neil Steiner · Oct 23, 2014 · Viewed 8.1k times · Source

My Subversion 1.7.17 working copy is unhappy with a particular file but is unable to update it. Any attempt to update gives me the same error, even if I delete the file or delete the directory:

Updating 'trunk/src/Makefile':
svn: E155017: Checksum mismatch for '/Volumes/project/dev/torc/trunk/src/Makefile':
   expected:  78ee11ff73f3b68c903db838b6667ec3
   recorded:  62bbbf4362958e3fd42470650d5b4eb6

I have read through SVN - Checksum mismatch while updating, and its two main solutions are to modify .svn/entries or to delete and restore the directory. There is nothing useful in the top-level .svn/entries file under 1.7, and deleting and restoring the directory did not fix my problem. Does anybody have other suggestions?

Answer

user3246706 picture user3246706 · Mar 9, 2016

This might be an older question, but I would like to share how I resolved it without checking out the entire (multiple GB) repository. I hope it helps people that have the same problem.

I'm using TortoiseSVN on Windows.

  1. Open the Repo-Browser by right-clicking on the file's parent folder and selecting TortoiseSVN > Repo-Browser
  2. In the repo-browser, right-click on your file, Select Update item to Revision
  3. In the Drop-Down menu Update Depth, select Exclude, click OK. This removes the checksum entry from your local repository database.
  4. Delete the file in the Explorer (trashbin), update your repository
  5. Go back to "Update item to Revision", for Update Depth select Working Copy
  6. Update your repository again

Everything should be back to normal.