使 SVN 中的文件夹可写,以便签出存储库时,权限已设置为可写?
无论如何,我都不是 Subversion 专业人士。但我将它用于我的编码项目,并使用 springloops.com 上的部署功能(喜欢它)。
我有一些日志、缓存和图像文件夹,我通常需要在新部署或新项目上将它们设置为可写。有没有办法让部署或下载时文件夹权限已设置为0777
?
I'm not a Subversion pro by any means. But I am using it for my coding projects and using the deployment feature at springloops.com (love it).
I have some log, cache and image folders that I routinely need to make writable on new deployments or new projects. Is there a way to make it so that when deploying or downloading, the folder permissions will already be set to 0777
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不幸的是,Subversion 不支持存储权限。根据此讨论(Nabble“Unix 文件权限”(外部链接)),但是,可以使用 svn 属性和一点 shell 脚本。
要将属性存储在 subversion 中:
稍后重新应用文件权限:
Unfortunately, Subversion doesn't support storing permissions. According to this discussion (Nabble "Unix file permissions" (external link)), however, one can use svn properties and a little bit of shell scripting.
To store the properties in subversion:
To later re-apply the file permissions:
svn 无法存储文件(或文件夹)权限,所以恐怕您唯一的选择就是编写一个脚本来使任务不那么乏味。
svn can't store file (or folder) permissions, so I'm afraid your only option is to write a script to make the task a little less tedious.
当您签出工作副本时,根据定义,您拥有整个工作副本的写入权限。
When you check out a working copy, by definition you have write access to the whole working copy.