在发布前锁定 Mercurial 分支

发布于 2024-09-13 07:55:13 字数 49 浏览 2 评论 0原文

如何锁定 Mercurial 的整个分支?我通常在发布之前就得到这个要求......

How do I lock the entire branch of a mercurial? I get this requirements normally before the release...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(2

山色无中 2024-09-20 07:55:13

您可能希望将整个存储库克隆到另一个位置,并且不允许任何人推送到它,而不是分支和锁定,例如不通过网络设置任何访问方法。
来自 joelonsoftware 的 Joel 编写了一篇出色的教程,解释了“正确的” Mercurial 工作流程:http://hginit.com

Instead of branching and locking, you might want to clone the entire repo to another location and not allow anyone to push to it, e.g. by not setting up any access methods to it over the network.
Joel from joelonsoftware has written an excellent tutorial explaining 'proper' mercurial workflows: http://hginit.com

悟红尘 2024-09-20 07:55:13

考虑使用 hg acl 扩展程序。使用它,您可以在主存储库的预发布时间内阻止用户访问某些分支。

另一种选择是将主存储库克隆到安全的地方,并且不允许任何人访问它。发布完成后,应该很容易将其与主存储库重新集成。

Consider using hg acl extension. With it you could block user access to certain branches during pre-release time on your main repository.

The other option is just to clone the main repository in safe place and not allow anybody to access it. After release is done it should be easy to reintegrate it with main repository.

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