Mercurial workflow question (how to handle Config files)

前端 未结 6 1828
有刺的猬
有刺的猬 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 13:01

    I don't know the details of your config files, but if you can include other files, then create a config_local file to hold the developer-specific settings. Add that file to .hgignore. Common settings go into the main config file, which then includes the config_local file.

    As Ken says, if inclusion isn't an option, then preprocessing during the build step may be the way to go.

提交回复
热议问题