Folder is locked and I can't unlock it

前端 未结 17 2395
离开以前
离开以前 2021-01-30 07:48

When I\'m trying to update or commit code from a project it\'s telling me that the folder is locked. When I try to \"release lock\" it says that there\'s nothing to unlock in th

17条回答
  •  难免孤独
    2021-01-30 08:36

    To anyone still having this issue (Error: Working copy '{DIR}' locked.), I have your solution:

    I found that when one of TortoiseSVN windows crash, it leaves a TSVNCache.exe that still has a few handles to your working copy and that is causing the Lock issues you are seeing (and also prevents Clean Up from doing it's job).

    So to resolve this:

    Either

    1a) Use Process Explorer or similar to delete the handles owned by TSVNCache.exe

    1b) ..Or even easier, just use Task Manager to kill TSVNCache.exe

    Then

    2) Right click -> TortoiseSVN -> Clean up. Only "Clean up working copy status" needs to be checked.

    From there, happy updating/committing. You can reproduce Lock behavior by doing SVN Update and then quickly killing it's TortoiseProc.exe process before Update finishes.

提交回复
热议问题