SVN锁定目录 [英] SVN lock a directory
问题描述
很抱歉,如果重复的话,我仍然找不到正确的答案。
Sorry if this is a duplicate, I didn’t find the right answer still..
如何从命令行锁定svn目录?我需要从签入中锁定分支
How do you lock a svn directory from command line? I need to lock a branch from checkins
编辑:
我找到的所有这些答案都需要这个人访问svn服务器。那不是我的选择。我在一家将源代码控制机器实际上锁定在金库中的公司里工作。获得更改身份验证规则的访问权限是我无法制定ATM的过程。
All of these answers I've found require the person to access the svn server. Thats not an option for me. I work in a company where the source control machine is literally locked in a vault. Gainning access to change auth rules is a process I can't work out ATM.
推荐答案
您无法锁定目录。您可以创建授权规则,以禁止对目录的写访问。通常就是这种事情的完成方式。您也可以使用预提交挂钩,但是我认为Subversion的身份验证是最好的。这是链接:
You can't lock a directory. You can create authorization rules that will prohibit write access to directories. This is typically how this type of thing is done. You could also use a pre-commit hook but I think Subversion's authz is best. Here is a link:
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html
这篇关于SVN锁定目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!