Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN - "you have to update your working copy first"

Tags:

tortoisesvn

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  
like image 280
Fitzchak Yitzchaki Avatar asked Feb 08 '10 20:02

Fitzchak Yitzchaki


3 Answers

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.

like image 155
Franci Penov Avatar answered Oct 04 '22 21:10

Franci Penov


I'm using TortiseSVN, and encountered the problem you're having.

Attempted effort: Delete a directory and the files in it.

My resolution path (entire effective procedure)

  1. Select relevant files. Right-click | TortiseSVN | Delete

    Response: Files marked for deletion.

  2. Right-click on containing directory | TortiseSVN | Commit

    Response: Files Deleted.

  3. Right-click on the next-higher directory from the aforementioned containing directory | SVN Update

    Response: Update complete.

  4. Right-click on the directory I wish to delete | TortiseSVN | Delete

    Response: Directory marked for deletion.

  5. Right-click on the next-higher directory from the aforementioned directory-to-delete | SVN Commit

    Response: Directory Deleted

Process Complete.

like image 27
techniscience Avatar answered Oct 04 '22 22:10

techniscience


Do an "SVN Cleanup", then do an update

like image 20
MrValdez Avatar answered Oct 04 '22 21:10

MrValdez