Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems committing file to SVN repository

I have a maven pom build file in the root directory of my project. When trying to synchronize with SVN repository from Eclipse (Europa), red double directed arrow is being added to the file icon. This means that both my local copy and the one in the repository have been changed since last synchronization.

When I try to do do 'Override and update...' error message is being thrown:

Some resources were not reverted. Attempted to lock an already-locked dir svn: Working copy 'C:\Java\workspaces\pro\myProject-TRUNK' locked 

Do you have an idea what should be done in this case?

like image 985
Boris Pavlović Avatar asked Feb 09 '09 14:02

Boris Pavlović


People also ask

How do I commit all files in svn?

svn add --force . will add all the files and directories below your current working directory that aren't added yet (and aren't ignored) to your working copy. A svn ci -m "" will then handle the commit. The only way without 'svn add' would be to use 'svn import', but this assumes a new location.


2 Answers

svn cleanup ?

not sure how you'd do that from eclipse though ... but if its a standard svn working copy, you should still be able to do it with another tool.

like image 145
benlumley Avatar answered Sep 23 '22 17:09

benlumley


In Eclipse, to do SVN clean up

Right Click on Locked Project -> Team ->Cleanup

like image 42
MADHAIYAN M Avatar answered Sep 23 '22 17:09

MADHAIYAN M