自动添加svn:needs-lock [英] Automatically add svn:needs-lock
问题描述
您好,我想知道SVN服务器是否可以自动在任何不是二进制文件的二进制文件上分配svn:needs-lock属性.
Hi I was wondering if there is a way for the SVN server to automatically assign the svn:needs-lock property on any file that is binary and not textual.
我们有一个相当小的开发人员团队,但是让每个人都记住要在新创建的二进制文件上设置此属性是没有道理的,因为很容易忘记这样的事情.
We have a rather small developers team but resting on everyone to remember to set this property on newly created binary files doesn't make sense since it's very easy to forget such a thing.
推荐答案
编辑svn配置文件并添加自动道具条目,或者将svn:auto-props
版本属性与SVN 1.8和更高版本的客户端一起使用. 阅读SVNBook !
Edit the svn config file and add an entry for auto props or use svn:auto-props
versioned property with SVN 1.8 and newer clients. Read SVNBook!
从SVN 1.8开始,您可以将svn:auto-props
属性应用于存储库的根路径.参见发行说明和更新的 SVNBook 1.8章.
From SVN 1.8 the you can apply the svn:auto-props
property to the root path of your repository. See this release note and updated SVNBook 1.8 chapter.
这篇关于自动添加svn:needs-lock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!