Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I release locks in Subversion recursively?

I am having a problem with version control in Subversion. I checked out a working copy from respository and got locks on all of its files. Then, without releasing the locks I have deleted the folder from disk.

  • I can't delete the folder from repository, since its got a lock
  • If the I and try to release the locks recursively, it says there are no locks to be released.
  • In Browse Repository view, I can only break the locks on particular, not folders recursively.

How can I break the locks residing in repository? I am using TortoiseSVN on Windows. Is there a command to break locks recursively for a folder?

like image 790
vikmalhotra Avatar asked Jul 01 '10 05:07

vikmalhotra


People also ask

How do you break the lock in TortoiseSVN?

To release a lock manually, select the file(s) in your working copy for which you want to release the lock, then select the command TortoiseSVN → Release Lock There is nothing further to enter so TortoiseSVN will contact the repository and release the locks.


2 Answers

Ok I got it. Here's what worked for me.

  • Check out a working copy
  • Then go in Windows explorer menu, TortoiseSVN -> Check for modifications...
  • Click on Check repository button
  • Select All the files, right click and select the break lock option
  • Delete the working copy and the one in repository. Voila! :)
like image 170
vikmalhotra Avatar answered Sep 28 '22 07:09

vikmalhotra


Doing an SVN cleanup will release the lock as well:

$ svn cleanup 
like image 36
rgubby Avatar answered Sep 28 '22 06:09

rgubby