Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve Subversion 1.7 checksum mismatch error on update

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?

like image 359
Neil Steiner Avatar asked Nov 16 '25 14:11

Neil Steiner


2 Answers

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.

I'm using Subversion 1.7+ client(Tortoise), and did solve this problem by two simple execution:

a. svn update --set-depth=empty

b. svn update --set-depth=infinity

Pls remind that step a will delete all your local files in this folder! So keep in mind that make a copy firstly.

like image 44
油尖旺金毛玲 Avatar answered Nov 18 '25 19:11

油尖旺金毛玲



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!