SVN:如何使用 subversion 使文件只读? [英] SVN: How to make a file read-only with subversion?

查看:30
本文介绍了SVN:如何使用 subversion 使文件只读?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个在 SVN 存储库中管理的大型 Web 项目.

I am working on a large web project which is managed in an SVN repository.

每次团队成员签出项目,或者我们在新的生产服务器上签出项目时,我们都必须修改该服务器的自定义配置文件.我有一个受版本控制的config.ini.base"文件,我们不断更新最新的设置,想法是团队成员复制它以创建他们的config.ini"(它列在目录).

Each time a team member checks out the project, or we check out the project on a new production server, we have to modify a custom configuration file for that server. I have a "config.ini.base" file under revision control, which we keep updated with the latest settings, the idea being that team members copy that to create their "config.ini" (which is listed under 'ignore' on the directory).

为了避免混淆和错误,我想以某种方式阻止对config.ini.base"的任何更改提交到存储库,除非明确提交或以某种方式明确覆盖只读设置.我该怎么做?

To avoid confusion and mistakes, I'd like to somehow block any changes to "config.ini.base" from being committed to the repository, unless it is committed explicitly or the read-only setting is somehow explicitly overridden. How would I do this?

推荐答案

svn 锁

另外,值得一读的是高级锁定

这篇关于SVN:如何使用 subversion 使文件只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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