主 Mercurial 存储库上的 ACL 扩展
我的服务器 hgrc 文件上有以下设置:
[extensions]
acl =
[acl]
sources = serve, push
[acl.allow]
我希望这会阻止我的客户端将任何内容推送到存储库,但是他们仍然可以正常推送。当我尝试从服务器推送时,我得到了无法推送任何内容的预期结果。
ACL 扩展是否依赖于编辑每个客户端的 hgrc 文件?如果他们只能更改自己的访问权限,这似乎没有多大帮助。
感谢您的帮助!
I have the following setup on my servers hgrc file:
[extensions]
acl =
[acl]
sources = serve, push
[acl.allow]
I was expecting this would block my clients from pushing anything to the repository, however they can still push fine. When I try and push from the server, I get the desired result of not being able to push anything.
Does the ACL extension rely on editing each clients hgrc file? Doesn't seem like that's very helpful if they can just change their own access.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来实现此目的
我通过删除hgrc 文件的部分 。我读到您通常不需要配置它,所以我只是将其删除,现在一切似乎都按预期工作!
I got this to work by removing the
section of my hgrc file. I read that you don't normally need to configure this, so I just removed it and everything seems to be working as desired now!