Reputation: 2420
I am trying to commit a change in subversion to a file. This file belongs to a directory that is linked to my project via an external, and is pegged at a certain revision.
When I do a commit, I get the error:
Commit failed
Base checksum mismatch on....
I tried to check out the directory again to ensure that it was clean and perform the commit again, but I still receive the same error.
Could it be related to committing to a pegged file? I thought that committing onto a file that is pegged should be possible and essentially branches off this code?
Upvotes: 39
Views: 47109
Reputation: 59513
For me also this one worked:
Upvotes: 0
Reputation: 57
I did this.
Upvotes: 4
Reputation: 2112
I simply removed the file from the working directory, then did svn up. Example:
rm dir/bad-file.txt
svn up dir/bad-file.txt
That worked.
Upvotes: 0
Reputation: 46
For me, a new checkout would be very time consuming (several gigs thousands of files). What I did:
Upvotes: 1
Reputation: 507
The simplest way IMHO is:
1. Checkout the last copy from your repository into some directory (f.e. TTTT).
2. Copy TTTT/.svn content to your normal source directory (override the existing content).
You are done - the original directory may be committed.
Upvotes: 1
Reputation: 2126
I solved the issue as the following
First, backup the folder where the problem is
2ns, Delete the original folder and commit it.
3rd, copy folder from backup folder
4th, I could commit this folder without the issue
This may not be the good solution, since, I delete the folder and commit, So that I think I can not revert it after I fixed this issue if I want to.
Upvotes: 0
Reputation: 2643
I had this issue, but deleting the folders didn't seem to do anything.
I managed to fix this by checkouting the same source files to another place and copying over the files which had these problems.
Clean / Revert / Update(after deleting the files) did nothing.
I'm running windows 7 with tortoisesvn 1.7.11 64 bit version.
Upvotes: 1
Reputation: 21
Just had the same issue and I used console client to deal with it:
svn rm filename
svn add filename
Upvotes: 2
Reputation: 311
What worked for me is to:
svn up --set-depth=empty
then
svn up --set-depth=infinity
error is gone!
Upvotes: 1
Reputation: 11
Just had the same issue and I used console client to deal with it:
Upvotes: 1
Reputation: 5136
Check your server's SVN version it might be mismatch with your local svn version.
1. Check SVN version by following command and upgrade it, if its mismatch with your server version.
svn --version
2. Checkout the project with latest version of SVN (i.e. your server svn version).
3. Commit the file.
Note : It will work only for SVN version mismatch case.
Upvotes: 0
Reputation: 387
What worked for me:
After this, the commits and updates seem to work correctly.
Upvotes: 0
Reputation: 1883
The way worked for me:
Upvotes: 52
Reputation: 493
The way that worked best for me, was:
Upvotes: 6
Reputation: 22166
Copy all files in your project to a temporary backup folder. Click "Revert" on your original project folder. Diff changed files with the backup folder, copy your changed files into the original project folder. Commit and your original folder is back to normal.
Just had this same issue on two projects and that method worked.
Upvotes: 11
Reputation: 8968
Your working copy maybe corrupted. You may try to repair it with SmartSVN (select Modify | Validate Admin Area). If this won't help only a fresh checkout will help.
Upvotes: 0