SVN 405 방법이 허용되지 않습니다
실수로 SVN에서 폴더를 삭제하고 즉시 다시 추가했습니다. 이 문제가 발생하여 솔루션이 서버 사본뿐만 아니라 로컬 사본에서 폴더를 완전히 제거했습니다. 다른 파일이나 폴더에서 문제없이 업데이트하고 커밋 할 수 있지만 같은 이름의 폴더를 만들고 추가하고 커밋하려고하면 다음과 같은 오류가 발생합니다.
svn : '/ svn / www /! svn / wrk / 9de0d765-2203-456c-af16-58e792ec7ac0 / trunk / htdocs / solutions / medical'에 대한 MKCOL 요청에 대한 응답으로 서버에서 예기치 않은 리턴 값 (405 메소드가 허용되지 않음)을 보냈습니다.
수많은 정리, 커밋, 업데이트 등을 실행했습니다. 아무것도 문제를 해결하지 못합니다. 아이디어?
참고로 최상위 폴더 이름을 바꿀 수있는 옵션이 없습니다.
내 추측은 추가하려는 폴더 가 SVN 에 이미 존재한다는 것 입니다. 파일을 다른 폴더로 체크 아웃하여 확인하고 트렁크에 이미 필요한 폴더가 있는지 확인할 수 있습니다.
내가 고치는 가장 빠른 방법은 영향을받는 폴더를 복제하고 다른 이름으로 커밋하는 것입니다. 그런 다음 svn mv duplicateFolder originalFolder
. 아주 쉽습니다.
따라서 folder1을 가져 와서 folder1Copy를 만드십시오.
svn delete folder1
svn add folder1Copy
커밋 및 업데이트 :
svn mv folder1Copy/ folder1/
다시 커밋하고 수정되었습니다.
"사라진"폴더는 libraries/fof
입니다.
삭제 한 다음 업데이트를 실행하면 표시되지 않습니다.
cd libaries
svn up
(아무 반응이 없습니다).
그러나 실제 이름으로 업데이트 :
svn update fof
트릭을하고 업데이트되었습니다. 그래서 나는 (수동으로 타르 아카이브 된) 작업 사본을 폭발시켜 다시 커밋했습니다. 가장 쉬운 솔루션.
방금 내 저장소 에서이 문제를 해결했습니다. Windows에서 TortoiseSVN을 사용하고 있으므로 명령 줄에서 이것이 어떤 명령으로 변환되는지 확실하지 않지만 다음은 내가 한 일입니다.
문제가있는 폴더는이며 lib
추가 될 예정입니다.
- 먼저 SVN이 더 이상주의를 기울이지 않도록 추가를 원하지 않았습니다.
- 그런 다음
libs
Windows 컨텍스트 메뉴를 사용하여 이름을 바꾸고 (추가로 중요하지 않음) 추가하고 성공적으로 커밋했습니다. - 마지막으로
lib
TortoiseSVN의 상황에 맞는 메뉴 (이것은 아마도 중요합니다) 를 사용하여 이름을 바꾸고 다시 커밋했습니다.
나는 또한이 문제를 지금 막 만났고 이런 식으로 해결했습니다. 여기에 기록했는데 다른 사람들에게 유용하기를 바랍니다.
대본:
- 코드를 커밋하기 전에 수정 : 100
- (다른 사람이 코드를 커밋 ... 수정 버전이 199로 증가했습니다)
- 나는 ( "svn up"을 실행하는 것을 잊었다) 코드를 커밋했다.
- "svn up"을 실행합니다.
오류가 발생했습니다.
해결책:
- $ mv current_copy copy_back # 현재 코드 사본의 이름을 바꿉니다
- $ svn checkout current_copy # 다시 확인하십시오
- $ cp copy_back / current_copy # 수정 사항 복원
나는 비슷한 문제가 있었다. 나는 궤도에서 그것을 파헤 쳤고 그 과정에서 내 SVN 기록을 잃어 버렸습니다. 그러나 적어도 그 망할 오류는 사라졌습니다.
이것은 아마도 실행하기에 최적이 아닌 일련의 명령 일 수 있지만 실제로 작업을 수행하기 위해 수행 한 명령 순서를 상당히 밀접하게 따라야합니다.
cp -rp target ~/other/location/target-20111108
svn rm target --force
cp -rp ~/other/location/target-20111108 target-other-name
cd target-other-name
find . -name .svn -print | xargs rm -rf
cd ..
svn add target-other-name
svn ci -m "Re-re-re-re-re-re-re-re-re-re import target"
svn mv target-other-name target
svn ci -m "Re-re-re-re-re-re-re-re-re-re import target"
code.google.com
Subversion 저장소를 호스팅 하는 데 사용 하는 경우
아래의 것들을 알고 있습니까?
If you plan to make changes, use this command to check out the code as yourself using HTTPS:
# Project members authenticate over HTTPS to allow committing changes.
svn checkout https://.../svn/trunk/ user-...
When prompted, enter your generated googlecode.com password.
Use this command to anonymously check out the latest project source code:
# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://.../svn/trunk/ ...-read-only
당신이 언급 한 오류는 정확하게 Non-members may check out a read-only working copy anonymously over HTTP
상태를 사용하고 있습니다. 따라서 지금까지 커밋하거나 수행 할 수 없습니다.
You must use Project members authenticate over HTTPS to allow committing changes
thing.
It will be fine now.
I encountered the same issue and was able to fix it by:
- Copy the folder to another place.
- Delete .svn from copied folder
- Right click the original folder and select 'SVN Checkout'
- If you can't find (3), then your case is different than mine.
- See if the directory on the REPO-BROWSER is correct. For my case, this was the cause.
- Check out
- Get back the files from the copied folder into the original directory.
- Commit.
This means that the folder/file that you are trying to put on svn already exists there. My advice is that before doing anything just right click on the folder/file and click on repo-browser. By doing this you will be able to see all the files/sub-folders etc that are already present on svn. If the required file/folder is not present on the svn then you just delete(after taking backup) the file that you you want to add and then run an update.
The currently added directory is already committed in the repository. So delete the directory in the repository and commit the same directory again.
참고URL : https://stackoverflow.com/questions/3601669/svn-405-method-not-allowed
'Programing' 카테고리의 다른 글
Sublime Text와 같이 PyCharm에서 선택한 텍스트를 둘러싸는 방법 (0) | 2020.07.11 |
---|---|
ProgressBar / ProgressDialog에 대한 사용자 정의 드로어 블 (0) | 2020.07.11 |
최대 신장이있는 어린이 : 부모를 100 % 오버플로 (0) | 2020.07.11 |
Windows에서 박쥐 파일을 사용하여 모든 내용이 들어있는 폴더를 삭제하는 방법은 무엇입니까? (0) | 2020.07.11 |
Google App Engine에서 모든 데이터 스토어를 삭제하는 방법은 무엇입니까? (0) | 2020.07.11 |