我可以使用 Mercurial 允许不同用户访问项目的不同部分吗?
我们正在使用 SVN,但对于我们的喜好来说,它似乎有点过时且笨重。我们有一个大项目,需要不同的团队成员来访问其中的不同部分。我们是否可以将 Mercurial 设置为某些人可以签出/更新整个项目的方式,而其他人只能签出/访问项目的某些部分?
We're using SVN, but it seems to be getting a little out of date and heavy for our liking. We have a big project that we need different team members to get access to different parts of. Can we set up Mercurial is a way that certain people can checkout / update the entire project, where as some other people only check out / access certain parts of the project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Mercurial 附带的 ACL 扩展可能适合您的需求。
There's the ACL extension which is shipped as part of Mercurial that may be suitable for your needs.
我最初的想法是可以使用子存储库来完成。如果您可以将项目拆分为定义的部分,则可以将它们设置为子存储库。您将拥有一个包含所有子存储库的父存储库。子存储库本身可以设置为仅可由某些人访问。
My initial thought is that it could be done using subrepos. If you can split your project into defined parts, these could be set up as sub-repositories. You would have a parent repository which contains all of the sub-repositories. The sub-repositories themselves could be set up to be accessible only by certain people.