V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
paloalto
V2EX  ›  macOS

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

  •  
  •   paloalto · 2010-11-19 20:28:52 +08:00 · 7296 次点击
    这是一个创建于 4899 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最开始我用的是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 条回复    1970-01-01 08:00:00 +08:00
    leafduo
        1
    leafduo  
       2010-11-21 21:30:12 +08:00
    一直在用 svn,从没遇到过……
    重新 co 一下试试?
    paloalto
        3
    paloalto  
    OP
       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
        4
    summic  
       2010-11-21 23:55:22 +08:00
    文件权限问题,最简单的办法是
    sudo chown -R 当前用户 项目根目录
    将所有文件所有者交给当前用户即可

    svn还是有很多不爽得地方的,现在换成 hg 感觉爽很多
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1280 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:31 · PVG 07:31 · LAX 16:31 · JFK 19:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.