单个文件的SVN权限 [英] SVN permissions for a single file

查看:66
本文介绍了单个文件的SVN权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SVN中是否可以为单个文件设置写权限,而存储库的其余所有部分都是只读的.

Is it possible in SVN to set write permission for a single file, while all the rest of the repository is read only.

推荐答案

否,无法在文件级别设置权限. 您可以使用预提交挂钩,或者如果使用svn 1.6, 您可以将文件移动到新目录中,并将外部文件放在旧目录中.然后,您可以修改新目录上的权限.

No, it is not possible to set permissions on file level. You either can use a pre-commit hook, or if you use svn 1.6, you can move the file into a new directory and place a file external in your old directory. You can then modify the permissions on the new directory.

请注意,文件外部仅适用于文本文件.目前不支持二进制文件.

Note that file externals are working only on text files. binary files are not supoorted at the moment.

这篇关于单个文件的SVN权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆