TortoiseSVN在samba环境下提交代码出错的解决方法
来源:互联网 发布:db2数据库回滚原因 编辑:程序博客网 时间:2024/05/24 23:13
TortoiseSVN是一个非常好用的svn GUI客户端,利用TortoiseSVN检查本地更新(svn st),diff,svn log,browser repository非常方便。所以我一般开发LAMP程序也会在把站点目录使用samba映射出来,然后在windows环境下使用TortoiseSVN。通过网上邻居访问svn会使得commit和svn st速度变慢,特别是有大量文件时,但是跟使用的方便性而已,这点速度流逝还是可以忍受的。
然而在某个条件下,还有可能导致另外一个更严重的错误。每次commit后会提示无法移动某些文件出错,特别是有新add文件上去的时候。通过研究这些文件。
ls -lah
-r-xr-x— 1 www-data www-data 192 2011-03-30 09:58 all-wcprops
发现在.svn目录里面的svn控制文件,权限会变成只读,导致了无法对这些控制文件移动或者删除,使得svn无法正常工作。这时可以删除出错的目录,并且使用TortoiseSVN进行clean up。但是每次commit都会不定期出现这个错误。
按理说TortoiseSVN新建立的文件是受samba的create mask控制的,通过测试umask和create mask,一切正常,TortoiseSVN其他建立的文件和目录也都正常受create mask控制,唯独.svn里面的几个文件w权限全部被删除。经过查询得知原来是samba的一个bug。
Permission problems with working copies on a SAMBA share.
After upgrading to TortoiseSVN 1.5.x or later, you get a lot of “Access denied” errors for most of the Subversion commands if your working copy is stored on a SAMBA share.
Some users reported that the problem went away after they upgraded SAMBA to the latest version. If that does not help or you can’t upgrade, allow readonly files to be deleted in the SAMBA config file:
[global]delete readonly = yesFor older versions, try:[global]create mask = 0644force create mode = 0600security mask = 0555force security mode = 0600
The information we have received suggests that the main problem is fixed in SAMBA 3.2.3. There is a supplementary problem with making files with the svn:needs-lock property read-only. This is reported to be fixed in SAMBA 3.2.6 or 3.3.0.
源文档 <http://tortoisesvn.tigris.org/faq.html>
加了force create mode后一切正常。
又:TortoiseSVN在网上邻居默认不显示图标,可以修改Setting->Icon Overlays->Drive Types->Network drivers。
- TortoiseSVN在samba环境下提交代码出错的解决方法
- TortoiseSVN在samba环境下提交代码出错的解决方法
- TortoiseSVN提交提示423 Locked的解决方法
- TortoiseSVN提交时崩溃的解决方法
- TBitmap resize在 android编译环境下 JNI调用方式出错的解决方法!!!
- Windows环境下java编译出错的解决方法
- fedora 下apache出错,代码400的解决方法
- Ubuntu 10.04 环境下的 'TortoiseSVN':RabbbitCVS
- VC2005程序在XP下出错的解决方法
- VMWare在2.6.20内核下编译出错的解决方法
- 命名管道在WIN7下运行出错的解决方法
- 关于在VS2013下创建OpenCV项目出错的解决方法
- Debian配置Samba出错解决方法
- 在selinux 环境下使用samba
- 在一测试环境下的RAC出错解决
- 真实工作环境下使用Git提交代码的流程
- django 在shell环境下不自动提交的问题
- form表单在spring 开发环境下的提交
- JasperReport 6 使用image
- C 判断循环
- springmvc+shiro用户登录后获取用户
- Eclipse Tomcat访问webapps下其他目录失败
- java学习路线(仅供参考)
- TortoiseSVN在samba环境下提交代码出错的解决方法
- MySQL学习笔记1
- impala-shell用法
- 09-多线程(创建线程的第二种方式—实现Runnable接口)1 2 10-多线程(第二种方式的细节) 11-多线程(第二种方式的好处)
- 谈话的艺术-基本理念
- Xshell控制台中文乱码
- js对js加载拼接的html代码中元素添加ajax方法请求后台数据
- springmvc中url-url-pattern /和/*的区别
- 针对ie8等低版本浏览器document.getElementsByName方法不生效解决方法