Different version of file in Mercurial repo

不想你离开。 提交于 2019-12-24 03:08:00

问题


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:


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.



来源:https://stackoverflow.com/questions/2818289/different-version-of-file-in-mercurial-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!