Different version of file in Mercurial repo

I have 2 servers with the same cloned Mercurial repo, but with different configuration lines in some files in this repo. How can I manage these files through Mercurial, but have no problems when pull / puss between servers?

+2
source share
1 answer

You must have version control:

  • single configuration file template
  • two value configuration files (one for each environment)
  • one script able to accept the configuration file template and fill it with the correct values ​​depending on the environment.

This way there is no problem during pull / push.

+1
source

Source: https://habr.com/ru/post/922015/


All Articles