How can I release locks in Subversion recursively?

前端 未结 9 1230
青春惊慌失措
青春惊慌失措 2021-02-01 12:24

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 ha

9条回答
  •  粉色の甜心
    2021-02-01 13:04

    From the advance locking section

    $ svn status -u
    M              23   bar.c
    M    O         32   raisin.jpg
           *       72   foo.h
    Status against revision:     105
    $ svn unlock raisin.jpg
    svn: 'raisin.jpg' is not locked in this working copy
    

    That simply means the file is not locked in your current working directory , but if it is still locked at the repository level, you can force the unlock ("breaking the lock")

    $ svn unlock http://svn.example.com/repos/project/raisin.jpg
    svn: Unlock request failed: 403 Forbidden (http://svn.example.com)
    $ svn unlock --force http://svn.example.com/repos/project/raisin.jpg
    'raisin.jpg' unlocked.
    

    (which is what you did through the TortoiseSVN GUI)

提交回复
热议问题