Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I keep getting 'SVN: Working Copy XXXX locked; try performing 'cleanup'?

If you have worked with SVN tools in Eclipse (Subversion, subversive) before, then you are likely familiar with the 'working copy 'XXX' locked..." error.

I found a very useful post with a workaround for this problem at: Working copy XXX locked and cleanup failed in SVN

As great as the workaround is, it is a pain to do it over and over again. Does anyone know why I keep getting this error and what steps I could take to prevent it?

Context: I am creating an Eclipse plugin that involves listening for SVN events, so in testing this plugin, I am constantly opening and closing the workspace. I usually do 1 or 2 commits each time I open the workspace. Every so often the commit will fail and I get the 'working copy locked' error. I would love for this error to not happen anymore, so any advice is appreciated.

Thanks!

like image 510
jbranchaud Avatar asked Feb 01 '11 17:02

jbranchaud


People also ask

What is SVN cleanup?

Description. Recursively clean up the working copy, removing working copy locks and resuming unfinished operations. If you ever get a “working copy locked” error, run this command to remove stale locks and get your working copy into a usable state again.

What is SVN working copy?

A Subversion working copy is your own private working area, which looks like any other ordinary directory on your system. It contains a COPY of those files which you will have been editing on the website.

Why is SVN locked?

It is good practice to get a file lock before editing a file. The lock tells other users that the file is being edited, and you can avoid merge issues. When you set up source control, you can configure SVN to make files with certain extensions read only. Users must get a lock on these read-only files before editing.


1 Answers

  1. Select the project
  2. Right click on the selected Project
  3. Team -> Cleanup

Problem Solved.

Note: The Above steps will work only Eclipse(Indigo package)

like image 69
Peter Prabu Avatar answered Sep 18 '22 17:09

Peter Prabu