气死我了!Mac OS里更新SVN时一直报错!

2010-11-19 20:28:52 +08:00
 paloalto
最开始我用的是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,但在我这儿就是不行!试了好多次照样报错!我还把项目目录删了,用终端的命令行重新检出,还是报错!

乃乃的!!我要崩溃了!!!
7306 次点击
所在节点    macOS
4 条回复
leafduo
2010-11-21 21:30:12 +08:00
一直在用 svn,从没遇到过……
重新 co 一下试试?
leafduo
2010-11-21 21:32:23 +08:00
paloalto
2010-11-21 22:39:38 +08:00
问题解决了。

公司有个“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.
summic
2010-11-21 23:55:22 +08:00
文件权限问题,最简单的办法是
sudo chown -R 当前用户 项目根目录
将所有文件所有者交给当前用户即可

svn还是有很多不爽得地方的,现在换成 hg 感觉爽很多

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/4764

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX