SVN frequently says file is locked by me in another working copy

前端 未结 5 1070
無奈伤痛
無奈伤痛 2021-02-13 12:46

I have an SVN repository (hosted on Dreamhost) with needs-lock set on binary files. It sometimes happen that, while committing files locked and modified by me, the commit fails

5条回答
  •  盖世英雄少女心
    2021-02-13 13:24

    If using a JetBrains IDE:

    right click on the file you want to unlock, go to Subversion and click lock

    then select checkbox steal existing lock and apply with OK

    right click on that file again, go to Subversion and click unlock

    If using command line:

    lock the file with --force

    svn lock --force path/to/file.ext
    

    and unlock it again

    svn unlock path/to/file.ext
    

提交回复
热议问题