Mercurial workflow question (how to handle Config files)

前端 未结 6 1826
有刺的猬
有刺的猬 2021-01-05 12:26

I have a long standing problem: at work we\'re using mercurial as a DSCM, but we can\'t figure out how to keep our config files in sync.

The problem is that we want

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 12:49

    If you can't deal with it with the inclusion of custom settings, just have a base config file in the repo.

    Then have each developer put it's own customization on top (with mq). If the customization isn't too intrusive the merge will always go well.

    There is another way, where you repeatedly merge your customization, but then when pushing you have to remember not to push the merge branch (tX is mainline, c1 is the customization)

    t1-t2-t3-t4-...-tN
      \    \      \   \
       c1---c2-----c3--c4
    

    The dev needs and push changes who only have tX as parents, cX should never escape the repo.

提交回复
热议问题