How can I create a mercurial hook that prevents new heads?

前端 未结 5 683
生来不讨喜
生来不讨喜 2021-01-14 17:43

I have several repositories that have been converted from SVN and moving forward we want make sure when people push to the repository they can\'t create additional heads. th

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-14 18:01

    Use hg ci -m 'Closed branch feature-x' --close-branch to close all but one head and then apply a normal single-head hook.

提交回复
热议问题