English 中文(简体)
Subclipse can t rename file (OS X)
原标题:

I can t perform any Subversion operations on my Eclipse project as Subclipse can t rename a file. The error is:

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 

I m running OSX Snow Leopard, Eclipse 3.5, Subclipse 1.6.5.

It looks like a permissions problem. If I list the directories in the error I get:

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

So I assume that it s the read-only permissions that is preventing this. If I try to chmod this to a very broad 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

Any ideas? Would quite like to commit my code.

Many Thanks.

最佳回答

No worries. Aunty Google found it for me

chflags -R nouchg .

From the comments here:

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.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签