This topic created in 5669 days ago, the information mentioned may be changed or developed.
最开始我用的是Cornerstone,结果更新时报错:
svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted。
以为是Cornerstone的问题,于是换成Versions,结果在Versions里面更新时还是报这个错误!
于是换用终端的命令行!
结果还是报这个错误!!
我就郁闷了!
在网上找解决办法,大家说原因可能是因为MAC和WIN的文件不一致导致的,解决办法基本上都是在说在项目目录下执行sudo chflags -R nouchg .或者sudo chflags -R nouchg *,然后svn cleanup,然后再svn up,但在我这儿就是不行!试了好多次照样报错!我还把项目目录删了,用终端的命令行重新检出,还是报错!
乃乃的!!我要崩溃了!!!
4 replies 1970-01-01 08:00:00 +08:00  | | 1 leafduo Nov 21, 2010 一直在用 svn,从没遇到过…… 重新 co 一下试试? |
 | | 3 paloalto Nov 21, 2010 问题解决了。
公司有个“192.168.1.16”服务器,还有个“192.168.1.18”服务器,我们的项目从16检出到18,工作环境就在18上。 刚才我进18里在etc/samba/smb.conf中加上了delete readOnly= yes,然后再把18中我的工作目录挂载到mac上,然后: hanjiyun:jxhuagong hanjiyun$ sudo chflags -R nouchg * hanjiyun:jxhuagong hanjiyun$ svn cleanup hanjiyun:jxhuagong hanjiyun$ svn up 结果就成功了。 搞半天是samba服务器那边的原因。
从国外一个论坛找到的解决办法:
With my setup at home I have a virtual machine running Debian that has my development environment and code. I use samba to mount my working copy to OS X. Initially I had a bunch of issues trying to using my Mac subversion clients with this working copy. I kept getting the following error:
Can't move '/Volumes/samba_share/.svn/tmp/entries' to '/Volumes/samba_share/.svn/entries': Operation not permitted
I added "delete readOnly= yes" to the global section of my smb.conf file and this solved the issue. |
 | | 4 summic Nov 21, 2010 文件权限问题,最简单的办法是 sudo chown -R 当前用户 项目根目录 将所有文件所有者交给当前用户即可
svn还是有很多不爽得地方的,现在换成 hg 感觉爽很多 |