Folder is locked and I can't unlock it

前端 未结 17 2195
离开以前
离开以前 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:25

    Clean up, check all check box => This work for me

    0 讨论(0)
  • 2021-01-30 08:34

    This was the first time I had this issue. I even tried to restart PC, without effect. This solves my problem:

    Solution for me:

    1. Right Click on Project Working Directory.
    2. Navigate TortoiseSVN.
    3. Navigate To Clean Up.
    4. Leave all default options, and check Break Locks
    5. Click OK

    This works for me. I was able to commit changes.

    0 讨论(0)
  • 2021-01-30 08:34

    To unlock a blocked document: 1. Right click -> Lock 2. Check the "Steal the locks" check box 2. Release the lock

    0 讨论(0)
  • 2021-01-30 08:34

    I research a lot on this issue but no solution fix my problem until I try this:

    My repo folder is shared with a Windows xp virtual machine, so I execute the clean up from the VM and then execute SVN UPDATE from the host.

    It worked for me.

    Greetings from Costa Rica.

    0 讨论(0)
  • 2021-01-30 08:35

    I had this issue and i have done below steps to resolve it:

    1. Go to parent folder instead of child folder
    2. Select SVN cleanup
    3. Click on OK.

    Do this step on parent folder instead of child folder!

    It worked for me !

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题