Problems committing file to SVN repository
Asked Answered
S

13

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?

Sommersommers answered 9/2, 2009 at 14:26 Comment(0)
A
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.

Aloud answered 9/2, 2009 at 14:31 Comment(1)
Subclipse plugin for Eclipse now has a "cleanup" option. Right-click on the project, go to Team -> Cleanup. Worked for me today!Gertrudegertrudis
I
31

In Eclipse, to do SVN clean up

Right Click on Locked Project -> Team ->Cleanup

Inmesh answered 26/9, 2013 at 7:39 Comment(0)
C
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.

Clemens answered 31/1, 2013 at 5:6 Comment(2)
Deleting lock files worked for me today. Cleanup didn't.Until
for me (on Windows) the file names were lock and logMouldon
M
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'

Malapert answered 9/2, 2009 at 14:37 Comment(3)
Subversive plugin for Eclipse just did it well. Thanks for the effort.Puri
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!Malapert
'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.Andesite
A
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
Attemper answered 19/10, 2012 at 7:37 Comment(0)
A
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..
Agler answered 12/10, 2011 at 6:11 Comment(0)
S
3

it's working for me.

add svn application

sudo apt-get install svn
cd <folder-project-name>
svn cleanup
Sardella answered 29/4, 2015 at 11:56 Comment(1)
Huh - after Team -> Cleanup failed (as well as restart and there also were no .lock files....) this did the trick. Thanks!Biodegradable
I
3

Restart your eclipse (IDE) . Problem Solved.

Inanity answered 31/8, 2015 at 5:41 Comment(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.Mcmurry
Sometimes eclipse does not sync with code. May be eclipse cache not updated.Eterne
M
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

Middlebuster answered 15/4, 2012 at 21:38 Comment(0)
A
2

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

Astronomer answered 20/1, 2016 at 11:56 Comment(0)
C
1

Right click and select Team->Refresh/Cleanup

Cu answered 1/3, 2015 at 7:7 Comment(0)
J
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.

Jozef answered 15/6, 2016 at 20:47 Comment(0)
I
1

Use TortoiseSVN -> Release lock -> Break lock

Inorganic answered 21/3, 2017 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.