且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

防止推送添加到已关闭分支的提交

更新时间:2023-12-01 20:58:10

有一个ACL扩展与Mercurial一起分发. 您应该能够通过拒绝对除管理员以外的每个人的提交来指定冻结的分支.我不确定命名分支机构是否可以利用此功能.

There is an ACL extension that is distributed along with Mercurial. You should be able to specify the frozen branches by denying commit to every one except the administrator. I am not sure if named branches can leverage this facility.

配置ACL:

[acl.deny.branches] 
frozen-branch = *

[acl.allow.branches]
branch_name = admin