Reputation: 64640
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?
Upvotes: 29
Views: 77529
Reputation: 722
It looks like the repository has got a bit confised! You could try a 'svn cleanup' in the project directory.
You can do it on the command line, or using a different tool...
From the command prompt, you'll have to have subversion installed and on the PATH. Close Eclipse, open up a command prompt and cd to the root of the project, then type 'svn cleanup'.
You could also use Tortoise SVN to do the same from Windows Explorer. Install Tortoise SVN and close Eclipse. Within Windows Explorer, navigate to the parent of your project directory, right click on the project folder and select 'Tortoise SVN' -> 'Clean up'
Upvotes: 6
Reputation: 307
I see Team -> Cleanup in most answers- somehow did not work for me.
I did this -It happened twice for me.
Once I resolved Like this -- I made a backup file with my changes . I closed my eclipse -> go into the prject in windows explorer - > Go to the file in conflict -> right click -> SVN -> Revert. Now I started eclipse -> put back my changes and it worked.
Second time it happened -- That did not help. So, I had to delete the project on my eclipse workspace, and checked out the project from SVN and it worked.
-Hope it helps.
Upvotes: 1
Reputation: 379
it's working for me.
add svn application
sudo apt-get install svn
cd <folder-project-name>
svn cleanup
Upvotes: 3
Reputation: 2068
In Eclipse, to do SVN clean up
Right Click on Locked Project -> Team ->Cleanup
Upvotes: 31
Reputation: 521
delete the .loc and .log files from the directory if Team->Cleanup is not available to you from subeclipse and update the resources giving you the error message earlier.
Upvotes: 8
Reputation: 300
This normally happens when you paste a directory into another in your project.
You have to create the directories manually, then paste all the files.
To solve the issue:
Upvotes: 5
Reputation: 372
I went to local svn folder and removed the log file and lock files did the svn update from eclipse and everything back on track
Upvotes: 2
Reputation: 41
This happens if we have some pending sessions on committing our changes so we’ll need to do some clean up before we’ll have another try on committing our changes. This is how to do it.
Upvotes: 3
Reputation: 11382
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.
Upvotes: 49