Repository/SVN

[SVN/Error] Some of selected resources were not committed.

Ma_Sand 2023. 11. 20. 16:37
반응형

Some of selected resources were not committed.

Some of selected resources were not committed.
svn: E200009: Cannot commit 'D:\...\src\main\webapp\WEB-INF\jsp\system\testLog' because it was moved to 'D:\...\src\main\webapp\WEB-INF\jsp\workflow\testLog' which is not part of the commit; both sides of the move must be committed together

 

위는 ...\jsp\system\에 있는 testLog.jsp를 ...\jsp\workflow\로 옮긴 후 커밋하려할 때 발생한 에러이다.

 

이를 해결하는 방법은 간단하다.

이동시키기 전의 경로와 이동시킨 후의 파일을 한번에 커밋하면 된다.

 

나같은 경우에는 testLog.jsp를  ...\jsp\system\에서 ...\jsp\workflow\로 파일을 옮긴 후 ...\jsp\system\에 아무 파일도 없어서 디렉토리를 삭제해야 했다. 그런데 기존에 ...\jsp\system\testLog.jsp가 커밋되어 SVN에 저장된 상태였다.

...\jsp\workflow\testLog.jsp만 커밋하려니까 SVN 입장에선 testLog.jsp가 어디에서 어디로 이동되는지도 알아야하기 때문에 위와 같은 에러를 뱉는 것이다.

그래서 ...\jsp\system\ 디렉토리와 ...\jsp\workflow\testLog.jsp를 한번에 커밋했더니 정상적으로 반영이 되었다.

 

SVN의 경우, 삭제할 것도 커밋을 해야 한다.

 

반응형