How to Unlock SVN locked file

SVN supports locking also. It is feature when someone takes lock and noone else can change it. But what if a peopla has one day vacation ?

As described here, it is possible to takeover such a lock.

http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html

 

I am using tortoise svn, which does not enclosure svn command line client neccesary for that, sou I have to download proper svn client for windows:

1.5.4 (we are using now)

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

svn-win32-1.5.4.zip

or 1.6.2

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100

svn-win32-1.6.2.zip

 

Cannot lock a file:

"c:\Program Files\svn-win32-1.5.4\bin\svn"
lock MyVB6Proj.vbp
svn: warning: Path ‘/trunk/MyVB6Proj/MyVB6Proj.vbp’ is already locked b
y user ‘user_having_vacation@DOMAIN’ in filesystem ‘/svn/vb/db’

 

Takeover lock

"c:\Program Files\svn-win32-1.5.4\bin\svn"
lock –force MyVB6Proj.vbp
‘MyVB6Proj.vbp’ locked by user ‘kunc@DOMAIN’.

 

And unlock my lock -this is operation I can do

c:\Program Files\svn-win32-1.5.4\bin\svn"
unlock  MyVB6Proj.vbp
‘MyVB6Proj.vbp’ unlocked.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s