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

前端 未结 5 632
生来不讨喜
生来不讨喜 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:07

    This is the best: https://www.mercurial-scm.org/wiki/TipsAndTricks#Prevent_a_push_that_would_create_multiple_heads

    I personally use: http://hg.python.org/hooks/file/default/checkheads.py

提交回复
热议问题