tags:

views:

536

answers:

4

I cannot figure out why I get this error during check-in. I checked in successful only a few hours ago so not sure why now it's complaining

Error: Commit failed (details follow):  
Error: Checksum mismatch for   
Error: 'C:\sss\sss\trunk\xxxx\.svn\text-base\Header.ascx.svn-base'; expected:   
Error: '3cee96f580409a1711a47541a07860dd', actual: 'a5fc0f8819b88bf32ab38d4c9a6b0654'  
Error: Try a 'Cleanup'. If that doesn't work you need to do a fresh checkout.

I got latest and also performed a clean-up which said successful so not sure what else to do.

+1  A: 

Looks like one of your SVN files is corrupt. First, check-in everything that can safely be checked in, and make sure to backup everything. Then fix the offending file - usually this involves deleting it from your repository. This should be okay if you're checking in a new version anyway.

bkritzer
Are you sure you need to delete it from the repository? It looks like just the working copy is corrupt. Also, the file is the BASE copy in .svn, normally you don't want to mess around with this directory.
Si
I agree. It's better to delete the parent and re-update.
bkritzer
but how can I check in when it's an atomic commit when you commit at the base?
CoffeeAddict
what do you mean by delete the parent and re-update?
CoffeeAddict
Another thought: have you tried saving your working copy and reverting to the previous revision (the one before head), then re-committing your working copy?
bkritzer
If I revert, won't it replace my current code?
CoffeeAddict
Yes, but you can back up your working copy before reverting, then replace it after the revert.
bkritzer
well, good thing I don't have too many updates then to merge back or else that would be a nightmare.
CoffeeAddict
A: 

Unfortunately, I can't help. But if you don't get a solution here, then you might have more luck on the subversion users mailing list where lots of experts and (subversion-) developers are present.

M4N
Nice, the damn forum shows your name...very public, not liking this.
CoffeeAddict
+4  A: 

Something has gotten out of sync or has become corrupt, and because it's in your .svn BASE directory, unless you are confident is tinkering with this, you're probably better off deleting the parent of the .svn directory and then perform an update. Of course take a backup or see if an export works before doing this so you don't lose any changes.

FWIW, I get this sometimes with our library references where Visual Studio seems to keep a lock on some files (even though it's not compiling) and won't let me update them.

Also, I gather xxxx.svn has had it's name changed for SO, because normally it's just .svn.

Si
so you're saying delete the parent .svn folder?
CoffeeAddict
I deleted my parent .svn, but then you lose the update command in your context menu..?
CoffeeAddict
>Also, I gather xxxx.svn has had it's name changed for SO, because normally it's just .svn.It was a posting issue, I wrapped the error above in code tags which renders the real error as I saw it
CoffeeAddict
Sorry if I wasn't clear; I assumed the problem wasn't at the root of your working copy, thus your parent directory itself has a .svn directory (which knows about it), which means an svn update would pull down a fresh version of the directory and its contents. If it was at root, then yes, I'm afraid a complete new checkout would be required.
Si
A: 

I agree with solution: delete parent folder and update again ===> problem will fixed. I meet this problem and successful with that solution.

Manh Ha