2009-11-19 3 views
13

내 Eclipse 프로젝트에서 Subclipse가 파일 이름을 바꿀 수 없으므로 Subversion 작업을 수행 할 수 없습니다. 오류 :Subclipse는 파일 이름을 바꿀 수 없습니다. (OS X)

Caused by: org.tigris.subversion.javahl.ClientException: svn: Cannot rename file '/Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/tmp/entries' to '/Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/entries' 
at org.tigris.subversion.javahl.JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:777) 
at org.tmatesoft.svn.core.javahl.SVNClientImpl.throwException(SVNClientImpl.java:1850) 
at org.tmatesoft.svn.core.javahl.SVNClientImpl.cleanup(SVNClientImpl.java:863) 
at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.cleanup(AbstractJhlClientAdapter.java:1958) 
... 8 more 
Caused by: org.tmatesoft.svn.core.SVNException: svn: Cannot rename file '/Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/tmp/entries' to '/Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/entries' 

OSX Snow Leopard, Eclipse 3.5, Subclipse 1.6.5를 실행 중입니다.

사용 권한 문제 인 것 같습니다. 내가 오류가있는 디렉토리를 나열하면 :

drwxrwxrwx 8 damianharvey staff 272 19 Nov 17:43 . 
drwxrwxrwx 16 damianharvey staff 544 21 Sep 14:53 .. 
-r--r--r-- 1 damianharvey staff 2030 21 Sep 14:53 all-wcprops 
-r--r--r-- 1 damianharvey staff 2313 21 Sep 14:53 entries 
drwxrwxrwx 2 damianharvey staff 68 21 Sep 14:53 prop-base 
drwxrwxrwx 2 damianharvey staff 68 21 Sep 14:53 props 
drwxrwxrwx 15 damianharvey staff 510 21 Sep 14:53 text-base 
drwxrwxrwx 6 damianharvey staff 204 19 Nov 17:19 tmp 

그래서이 문제를 방지하는 것은 읽기 전용 권한이라고 가정합니다. 내가 이것을 매우 광범위하게 chmod하려고한다면 :

sudo chmod 777 /Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/entries 
chmod: Unable to change file mode on /Users/damianharvey/Sites/Odyssey3.5/OdysseyEDIJAXB/src/com/locuslive/edi/edifact/d95b/coreor/.svn/entries: Operation not permitted 

어떤 아이디어라도? 내 코드를 커밋하고 싶습니다.

많은 감사.

답변

35

걱정할 필요가 없습니다. 이모 구글은 comments here에서 나를

chflags -R nouchg . 

을 위해 그것을 발견

If you're changing workspaces on OS X and you import an SVN-based project into your new workspace, some of your files may have the uchg flag set. SubClipse/SVN will not be able to update this project. You will get an error:

svn: Cannot rename file

every time you try invoke svn. If you issue:

chflags -R nouchg .

at the top-level of the project directory this will clear these flags and restore SVN function.

+0

나는이 대답을 사용한 적이마다 한 번씩 당신을 투표 할 수 있다면, 당신은 그냥 존 소총을위한 실행을 줄 수도 자신의 돈. –

+0

+1 (OSX 10.6.6) – Dori

+0

++ 덕분에 고모님께 고맙습니다. –

관련 문제