Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以看到您如何使用 Acl 扩展来控制某些用户对特定存储库的推/拉,但是您可以使用 Acl 扩展控制对存储库的“WEB”访问吗?我希望某些存储库只为某些用户显示。
我在 IIS7 上进行部署,因此该解决方案需要在该环境中工作。
我假设您通过 HGWeb CGI 脚本执行此操作。如果是,您可以在每个项目的文件中指定allow_push和参数。如果您指定other than ,则不在列表中的用户甚至不会在 HGWeb 项目列表页面上看到该项目。allow_read.hg/hgrcallow_read*
allow_push
allow_read
.hg/hgrc
*
只需使用正常.htaccess的类似功能来限制可以访问的存储库。hg大多数情况下不关心身份验证并将其留给网络服务器。
.htaccess
hg