tags:

views:

678

answers:

5

When I trying to commit I get this error. What that was done, I think is a rename of the folder. I tried already rename / move the folder. But I continue to get the error.

Command: Commit  
Error: Commit failed (details follow):  
Error: File 'Page.aspx' is out of date  
Error: File not found: transaction '99-4a', path '/trunk/src/Solution.UI/Views/ViewName/Page.aspx'  
Error: You have to update your working copy first.  

I do try to update, but unfortunately is doesn't solved the problem.

Command: Update  
Completed: At revision: 99  

Edit: after the deleted the files from the folder, do update to restore them, and replace the restored files with the originals I get this error:

Error: Commit failed (details follow):  
Error: Base checksum mismatch on '/trunk/src/Solution.UI/Views/ViewName/Page.aspx':  
Error:    expected:  ed3bc4a70ee4256bd2f7cf8c57f29a1f  
Error:      actual:  b8a2797dc262dc714fae6dc897b5ebd2  
+1  A: 

You have to update your working copy.

That is, perform an "SVN Update" in order to get the latest revision, and check to make sure your changes don't conflict.

Anon.
I do update, and it updated. but the problem doesn't solved.
Mendy
+4  A: 

SVN knows that there was a change in the repository, but it does not know what that changes was. You might have made exactly the same change on your working copy, but unless you actually try to do update so that SVN can run the resolve, it won't check that your local change is the same as the repo change.

Do an svn update and the conflict resolution should be automatic. Though, if you've made changes to the same files, it might ask you to manually resolve even if it's exactly the same change (Even more likely if the change was a folder rename)

You might have to do also an svn resolved to enforce the manual conflict resolution.

Worst come to worst, you can always copy the files you've changed, revert local changes, update and replace the files in the new folder.

Franci Penov
`svn resolved`: file list is empty.
Mendy
+1  A: 

Do an "SVN Cleanup", then do an update

MrValdez
Did SVN Cleanup > SVN Update > SVN Commite. but the error continue to blow up.
Mendy
+1  A: 

It looks like you have Page.asx in you working copy and it doesn't exist in repository anymore?

maybe try deleting it physically from your drive or if it's still needed just move it away to different location, try commiting and then add it again?

Michal M
+1 Delete the offending file (backing it up if you've made changes to it) and do an update to grab the 'updated' Page.asx
Blair McMillan
+1  A: 

Sometimes you can get these strange broken working copy issues and despite trying everything, you can't get it to work again and you're completely unable to commit your work. One way to get out of this situation is to do the following:

  • Check out your project to a new folder.
  • Copy the modified files only from your old working copy to your new working copy. If you commit often this shouldn't take long. If you commit once a month, this could take some time...
  • Double check that the modifications list is the same on both working copies.
  • Commit from your new working copy.
  • Delete your old working copy and check it out again.

It's not very satisfying to do it this way as it doesn't show you what went wrong and why, but if you just want to get on with your work, then it's nice to know that there's a quick fix.

Mark Byers