You can’t lock or unlock subversion file. “‘file’ locked by user ‘your.name'”. Try “svn -force”

By neokrates, written on March 22, 2011

howto

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 1,623 views
Rate it
Ad
Poll
  • Your favorite Java IDE is?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

You try to lock or unlock file and svn says that the file is locked by user ‘your.name’, locked by you!? In my case simple force helps me out…

Both svn command line locking and unlocking fails. Also, tools like Eclipse and TortoiseSVN can not lock or unlock.

Works for:
– svn, version 1.6.15 (r1038135)
– windows xp
– cygwin

Should work for:
– theoretically, many versions and operating systems, but I have not tried it

problem in my case is solved by:

>svn unlock -force myfile.txt
>'myfile.txt' locked by user 'your.name'

and this three commands would have failed:
Simple svn lock fails:

>svn lock myfile.txt
>'myfile.txt' locked by user 'your.name'

Simple svn unlock fails:

>svn unlock myfile.txt
>'myfile.txt' locked by user 'your.name'

Forcing svn unlock fails:

>svn unlock -force myfile.txt
>'myfile.txt' locked by user 'your.name'

Have fun ;)

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 4 votes)
2 votes 'YES'  2 votes 'NO'


TAGS

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS


One Response to “You can’t lock or unlock subversion file. “‘file’ locked by user ‘your.name'”. Try “svn -force””

  1. et001 says:

    use the following command svn unlock –force file:///(specify the path of the file)

Leave a Reply