Subversion-是否可以禁用所有提交并使存储库为只读? [英] Subversion - Is it possible to disable all commits and make the repository read only?
问题描述
我有一个Subversion仓库,它是另一个远程仓库的镜像。我每周使用svnsync镜像存储库。镜像存储库(本地副本)仅用于备份。
I have a subversion repository that is a mirror of another remote repository. I use svnsync to mirror the repository every week. The mirrored repository (local copy) is only there for backup.
我想将镜像存储库保持为只读,即没有人应该能够对此存储库进行任何更改,但他们可以使用它来读取源文件
I would like to keep the mirrored repository as READ-ONLY, i.e. nobody should be able to commit any changes to this repository but they can use it for reading source files as it is faster than the remote repository.
我在Google上环顾四周,似乎Hook可能是最好的选择。唯一的问题是,我在Google上看到的所有示例均基于Unix,并且由于镜像存储库在Windows Server上运行,因此我找不到适合Windows的示例。
I had a look around on Google and it seems that a Hook is probably the best option. The only problem is that all of the examples i am seeing on Google are Unix based and i cant find a suitable example for Windows as the mirrored repository is running on a Windows Server.
有什么想法吗?
推荐答案
为什么不只配置匿名访问=读取并进行身份验证访问=读取svnserve.conf?
Why not just configure anon-access = read and auth-access = read in svnserve.conf?
这篇关于Subversion-是否可以禁用所有提交并使存储库为只读?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!