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

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • What new build tool would you consider as Ant replacement?

    • I prefer something else (88%, 7 Votes)
    • Nant (13%, 1 Votes)
    • Ant is still the best (13%, 1 Votes)
    • Rant (0%, 0 Votes)
    • Gant (0%, 0 Votes)

    Total Voters: 8

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

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 ;)

 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: 0 (from 2 votes)
1 votes 'YES'  1 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

RELATED
Pages
Posts
    nope :(

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

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)

    Like or Dislike: Thumb up 2 Thumb down 0

Leave a Reply