How can I release locks in Subversion recursively?

前端 未结 9 1370
青春惊慌失措
青春惊慌失措 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:21

    When I tried to run the script from above as originally provided, I was getting an error when it tried to set the variables: ./scriptname: line1: =/svn/repo/path/: No such file or directory ./scriptname: line2: =directory/: No such file or directory

    I removed the '$' from the first two lines and this worked perfectly after that.

    repopath=/var/svn/repos/myproject/;
    problemdirectory=trunk/bikeshed/
    IFS=$'\n'; for f in $(sudo svnadmin lslocks $repopath $problemdirectory \
    | grep 'Path: ' \
    | sed "s/Path: \///") ; \
    do sudo svnadmin rmlocks $repopath "$f" ; done
    

提交回复
热议问题