强制用户在编辑前锁定 SVN 中的文件 [英] Force user to lock file in SVN before editing

查看:28
本文介绍了强制用户在编辑前锁定 SVN 中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的项目中有一些文件无法合并,因此用户必须在编辑之前锁定这些文件.有没有办法强制用户在编辑前锁定文件?

We have some files in our project that can't be merged and hence the files must be locked by the users before editing them. Is there a way to force the user to lock a file before editing?

我们正在使用 Subversion 和 TortoiseSVN/VisualSVN.

We are using Subversion and TortoiseSVN / VisualSVN.

推荐答案

两步:

  • svn:needs-lock 属性放在这些文件上.这样他们就以只读方式签出
  • 当必须修改此类文件时,请使用 svn lock 命令并照常提交
  • put the svn:needs-lock property on those files. That way they are check out read-only
  • when such a file must be modified, use the svn lock command and commit as usual

链接:

这篇关于强制用户在编辑前锁定 SVN 中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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