主 Mercurial 存储库上的 ACL 扩展

发布于 2024-11-16 10:21:05 字数 270 浏览 1 评论 0原文

我的服务器 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想念有你 2024-11-23 10:21:05

来实现此目的

[acl]
sources= server, push

我通过删除hgrc 文件的部分 。我读到您通常不需要配置它,所以我只是将其删除,现在一切似乎都按预期工作!

I got this to work by removing the

[acl]
sources= server, push

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文