Working copy XXX locked and cleanup failed in SVN

901,333

Solution 1

One approach would be to:

  1. Copy edited items to another location.
  2. Delete the folder containing the problem path.
  3. Update the containing folder through Subversion.
  4. Copy your files back or merge changes as needed.
  5. Commit

Another option would be to delete the top level folder and check out again. Hopefully it doesn't come to that though.

Solution 2

For me, the trick was to run svn cleanup at the top of my working copy, not in the folder where I'd been working the whole time before the problem occurred.

Solution 3

Look in your .svn folder, there will be a file in it called lock. Delete that file and you will be able to update. There may be more lock files in the .svn directory of each subdirectory. They will need deleting also. This could be done as a batch quite simply from the command line with e.g.

find . -name 'lock' -exec rm -v {} \;

Note that you are manually editing files in the .svn folder. They have been put there for a reason. That reason might be a mistake, but if not you could be damaging your local copy.

SOURCE : http://www.svnforum.org/2017/viewtopic.php?p=6068

Solution 4

In my case I solved it by manually deleting a record in the SQLite ".svn\wc" file lock record in the WC_LOCK table.

I opened the "WC" file with SQLite editor and executed

delete from WC_LOCK

screenshot showing all entries purged from WC_LOCK

Following eakkas's comment, you might need to delete all the entries from WORK_QUEUE table as well.

Solution 5

Easiest way ever:

  1. Go to Parent directory(Folder) of Project.
  2. Pres Right click
  3. Press on TortoiseSVN then Press Clean up...
  4. Clean up dialog would appear automatically
  5. Select Clean up working copy status, Break locks, Fix time stamps, Vacuum pristine copies, Refresh shell overlays, Include externals
  6. Pres OK

You did your job successfully.

Check the screen shots for your reference.

First step:

enter image description here

Second step: Enable the Break lock option(second check box in cleanup popup window) enter image description here

Hope this will help you a lot.

Share:
901,333
Dan
Author by

Dan

Updated on July 08, 2022

Comments

  • Dan
    Dan almost 2 years

    I get this error when I do an svn update:

    Working copy XXXXXXXX locked Please execute "Cleanup" command

    When I run cleanup, I get

    Cleanup failed to process the following paths: XXXXXXXX

    How do I get out of this loop?