Search code examples
javaeclipsesvneclipse-pluginsubclipse

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!


Solution

    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)