自动添加 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
属性应用于存储库的根路径.请参阅此发行说明并更新
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屋!