폴더가 잠겨있어 잠금을 해제 할 수 없습니다.
프로젝트에서 코드를 업데이트하거나 커밋하려고 할 때 폴더가 잠겨 있다는 메시지가 표시됩니다. "잠금 해제"를 시도하면이 작업 공간에 잠금을 해제 할 항목이 없다고 표시됩니다.
그게 무슨 뜻이야? 프로젝트를 업데이트, 커밋 또는 정리할 수없는 이유.
Subversion 작업 디렉토리 폴더를 마우스 오른쪽 버튼으로 클릭 하고 컨텍스트 메뉴에서 TortoiseSVN-> Clean Up 을 선택 합니다. 이것은 작업 디렉토리를 반복하고 불완전한 작업을 정리하고 로컬 잠금을 제거합니다 (모든 사람이 잠금에 대해 알 수 있도록 저장소에서 파일의 Subversion 잠금을 사용하는 것과 다릅니다).
그래도 작동하지 않으면 변경되었지만 아직 커밋되지 않은 파일의 이름을 찾을 수 있는지 확인하고 저장 한 다음 체크 아웃을 다시 실행하십시오.
파일이 자신 (동일한 svn 계정)에 의해 잠긴 경우 다음 단계를 수행 할 수 있습니다.
잠긴 파일 또는 폴더를 마우스 오른쪽 버튼으로 클릭하고 TortoiseSVN-> Get lock ...을 선택 하고 대화 상자의 왼쪽 하단 모서리에있는 " [] Steal the locks "를 선택하고 "OK"를 클릭합니다. 성공적으로 완료되면 괜찮습니다. 파일을 다시 마우스 오른쪽 버튼으로 클릭하면 TortoiseSVN-> Release lock ...을 볼 수 있습니다 . 클릭하여 잠금을 해제합니다.
svn 명령 줄을 사용하여 로컬 폴더의 잠금을 해제하려면 svn cleanup
.
전에:
# svn commit -m "fixing #1234"
# svn st
# svn cleanup
후:
# svn st
# svn commit -m "fixing #1234"
여전히이 문제가있는 모든 사람에게 ( 오류 : 작업 복사본 '{DIR}'잠김. ) 솔루션이 있습니다.
TortoiseSVN 창 중 하나가 충돌하면 TSVNCache.exe가 여전히 작업 복사본에 대한 몇 개의 핸들을 가지고 있고 이로 인해 표시되는 잠금 문제가 발생한다는 것을 발견했습니다 (또한 Clean Up이 작업을 수행하지 못하게합니다).
따라서이를 해결하려면 :
어느 한 쪽
1a) 프로세스 탐색기 또는 유사한 도구를 사용하여 TSVNCache.exe가 소유 한 핸들을 삭제합니다.
1b) .. 또는 더 쉽게 작업 관리자를 사용하여 TSVNCache.exe를 종료하십시오.
그때
2) 오른쪽 클릭-> TortoiseSVN-> 정리. "작업 복사본 상태 정리"만 확인하면됩니다.
거기에서 행복한 업데이트 / 커밋. SVN 업데이트를 수행 한 다음 업데이트가 완료되기 전에 TortoiseProc.exe 프로세스를 빠르게 종료하여 잠금 동작을 재현 할 수 있습니다.
이 문제가 처음 발생했습니다. 효과없이 PC를 다시 시작하려고했습니다. 이것은 내 문제를 해결합니다.
나를위한 솔루션 :
- 프로젝트 작업 디렉토리를 마우스 오른쪽 버튼으로 클릭 합니다.
- TortoiseSVN을 탐색 합니다.
- 정리로 이동합니다 .
- 모든 기본 옵션을 그대로두고 잠금 해제를 선택하십시오.
- 확인을 클릭하십시오
이것은 나를 위해 작동합니다. 변경 사항을 적용 할 수있었습니다.
현재 다른 사용자가 잠근 명령 프롬프트에서 작업 복사본의 파일을 잠금 해제하려면 --force
option을 사용 합니다.
$ svn unlock --force tree.jpg
이 문제가 있었고 해결하기 위해 아래 단계를 수행했습니다.
- 하위 폴더 대신 상위 폴더로 이동
- SVN 정리 선택
- 확인을 클릭하십시오.
하위 폴더 대신 상위 폴더에서이 단계를 수행하십시오!
그것은 나를 위해 일했습니다!
I was moving a folder up one level and into another folder. My mistake was doing the move from within the parent folder.
Bad example:
pwd -> C:\Repo\ParentDir\
svn move ./DirtoCopy ../AnotherDir
SVN needs to update the parent directory with the deleted folders info.
You have to do it from the common root of the source and destination folders or use full paths.
Good example:
svn move C:\Repo\ParentDir\DirtoCopy C:\Repo\NewLocation
I had this problem where I couldn't unlock a file from the client side. I decided to go to the sever side which was much simpler.
On SVN Server:
Locate locks
svnadmin lslocks /root/of/repo
(in my case it was var/www/svn/[name of Company])
You can add a specific path to this by svnadmin lslocks /root/of/repo "path/to/file"
Remove lock
svnadmin rmlocks /root/of/repo “path/to/file”
That's it!
Solution :
- Right Click on Project Working Directory.
- Navigate TortoiseSVN.
- Navigate To Clean Up.
- Select Clean up working copy status(make checked mark)
- Click OK
- Repeat Step 1 and 2 then navigate to release Lock.
- Click OK Your project lock get opened.
In addition to David M's answer, while doing cleanup -> check 'break locks' option. This will ensure release of locks. Then do svn update. This worked for me.
To unlock a blocked document: 1. Right click -> Lock 2. Check the "Steal the locks" check box 2. Release the lock
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.
I was able to resolve this issue on my machine by renaming folders to make the folder path smaller.
I had this happen after having Tortoise get corrupted and crash while trying to update folders. I ended up re-installing Tortoise, but the ghost lock was still present. From there I had to delete the folder and do a new checkout. Obviously I got really lucky that I didn't have any new changes to commit at the time. Anyhow, not great news, and if anyone has a better solution I'd love to hear it myself. Even using "Break Lock" ie unlock with the force option did not change anything.
Clean up, check all check box => This work for me
I encountered this problem after these operations:
- get lock on folder
- modify files
- remove files and update folders --> new files downloaded
- try to commit or release lock
마침내 잠금을 다시 강제하여 문제를 해결했습니다. TortoiseSVN-> Get Lock-> "steal lock"을 확인한 다음 잠금을 커밋하거나 해제합니다.
참고 URL : https://stackoverflow.com/questions/10018928/folder-is-locked-and-i-cant-unlock-it
'program story' 카테고리의 다른 글
stdin이 터미널인지 파이프인지 감지합니까? (0) | 2020.08.07 |
---|---|
Python / Django : runserver에서 콘솔에 로그, Apache에서 파일에 로그 (0) | 2020.08.07 |
언어는 언제 스크립팅 언어로 간주됩니까? (0) | 2020.08.06 |
Facebook 좋아요 버튼-댓글 팝업을 비활성화하는 방법? (0) | 2020.08.06 |
console.log ()를 재정의하십시오. (0) | 2020.08.06 |