Different version of file in Mercurial repo

2019-07-13 08:47发布

I have 2 servers with same cloned Mercurial repo but with different config lines in some files in this repo. How can I control this files via Mercurial but haven't problem when pull/puss between servers?

1条回答
成全新的幸福
2楼-- · 2019-07-13 09:23

You should rather have under version control:

  • one config file template
  • two config file values (one per environment)
  • one script able to take the config file template and fill it with the right values depending on the environment.

That way, no problem during pull/push.

查看更多
登录 后发表回答