29

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148

13 Answers13

49

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.

benlumley
  • 11,370
  • 2
  • 40
  • 39
  • 29
    Subclipse plugin for Eclipse now has a "cleanup" option. Right-click on the project, go to Team -> Cleanup. Worked for me today! – Thimmayya Mar 14 '11 at 18:13
31

In Eclipse, to do SVN clean up

Right Click on Locked Project -> Team ->Cleanup

MADHAIYAN M
  • 2,028
  • 25
  • 22
8

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.

6

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'

stephendl
  • 722
  • 3
  • 9
  • Subversive plugin for Eclipse just did it well. Thanks for the effort. – Boris Pavlović Feb 09 '09 at 15:08
  • The problem is that if Eclipse is causing the problem that requires a cleanup, I wouldn't trust the Subclipse 'cleanup' to help me out! – stephendl Feb 09 '09 at 15:32
  • 'Working Copy locked' is a working copy issue, and has nothing to do with your repository. (Other users of the same repository will not see any issues.) Just run 'svn cleanup' (or your clients command for that) to clean the workingcopy locks. – Bert Huijben Feb 10 '09 at 09:28
5

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:

  • Right click on the project (or on a parent directory)
  • Then team
  • Then clean up
Stephan
  • 41,764
  • 65
  • 238
  • 329
Silent_Rebel
  • 300
  • 4
  • 15
3

it's working for me.

add svn application

sudo apt-get install svn
cd <folder-project-name>
svn cleanup
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
Furetto
  • 329
  • 3
  • 9
  • Huh - after `Team -> Cleanup` failed (as well as restart and there also were no .lock files....) this did the trick. Thanks! – BurninLeo Sep 07 '16 at 20:06
3

Restart your eclipse (IDE) . Problem Solved.

Zumry Mohamed
  • 9,318
  • 5
  • 46
  • 51
  • 2
    I tried several of these suggestions. This is the one that worked for me! I'd recommend trying this one before some of the more involved solutions. – Jason Nov 23 '15 at 13:40
  • 1
    Sometimes eclipse does not sync with code. May be eclipse cache not updated. – Pradeep Sanjaya Nov 24 '15 at 04:00
3

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.

  1. Click to Team->Clean Up
  2. Try again to commit..
2

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

Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
2

Right-click on project-->Team-->Refresh/Cleanup

Vijay Bhatt
  • 1,351
  • 13
  • 13
1

Right click and select Team->Refresh/Cleanup

Deepu Surendran
  • 205
  • 2
  • 3
1

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.

1

Use TortoiseSVN -> Release lock -> Break lock

Aliuk
  • 1,249
  • 2
  • 17
  • 32