Boris Pavlović
Boris Pavlović

Reputation: 64640

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?

Upvotes: 29

Views: 77529

Answers (13)

Aliuk
Aliuk

Reputation: 1377

Use TortoiseSVN -> Release lock -> Break lock

Upvotes: 1

stephendl
stephendl

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

Deepa Dhanalakota
Deepa Dhanalakota

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

Vijay Bhatt
Vijay Bhatt

Reputation: 1391

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

Upvotes: 2

Zumry Mohamed
Zumry Mohamed

Reputation: 9558

Restart your eclipse (IDE) . Problem Solved.

Upvotes: 3

Furetto
Furetto

Reputation: 379

it's working for me.

add svn application

sudo apt-get install svn
cd <folder-project-name>
svn cleanup

Upvotes: 3

Deepu Surendran
Deepu Surendran

Reputation: 215

Right click and select Team->Refresh/Cleanup

Upvotes: 1

MADHAIYAN M
MADHAIYAN M

Reputation: 2068

In Eclipse, to do SVN clean up

Right Click on Locked Project -> Team ->Cleanup

Upvotes: 31

Vaishali Kulkarni
Vaishali Kulkarni

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

Silent_Rebel
Silent_Rebel

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:

  • Right click on the project (or on a parent directory)
  • Then team
  • Then clean up

Upvotes: 5

Dinesh Khetarpal
Dinesh Khetarpal

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

Kamalakar Dandu
Kamalakar Dandu

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.

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

Upvotes: 3

benlumley
benlumley

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

Related Questions