Subclipse无法重命名文件(OS X)

Dam*_*amo 13 java eclipse subclipse svn

我无法在Eclipse项目上执行任何Subversion操作,因为Subclipse无法重命名文件.错误是:

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'
Run Code Online (Sandbox Code Playgroud)

我正在运行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
Run Code Online (Sandbox Code Playgroud)

所以我假设这是禁止这种情况的只读权限.如果我尝试将其调整为非常广泛的777:

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
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?非常想提交我的代码.

非常感谢.

Dam*_*amo 35

别担心.阿姨谷歌为我找到了它

chflags -R nouchg .
Run Code Online (Sandbox Code Playgroud)

这里评论:

如果要更改OS X上的工作区并将基于SVN的项目导入新工作区,则某些文件可能会设置uchg标志.SubClipse/SVN将无法更新此项目.你会收到一个错误:

svn:无法重命名文件

每次你尝试调用svn.如果您发出:

chflags -R nouchg.

在项目目录的顶层,这将清除这些标志并恢复SVN功能.