代码之家  ›  专栏  ›  技术社区  ›  Damo

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

  •  13
  • Damo  · 技术社区  · 15 年前

    我不能在我的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'
    

    看起来像是权限问题。如果我在错误列表中列出目录,我会得到:

    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
    

    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
    

    非常感谢。

    1 回复  |  直到 15 年前
        1
  •  35
  •   Damo    15 年前

    别担心。谷歌阿姨帮我找到的

    chflags -R nouchg .
    

    comments here

    如果要更改OS X上的工作区 然后导入一个基于SVN的项目 文件可能设置了uchg标志。 错误:

    svn:无法重命名文件

    问题:

    瑞士法郎-R努奇。

    此目录将清除这些标志 恢复SVN功能。