How to push code to multiple servers by Mercurial?

前端 未结 3 1932
[愿得一人]
[愿得一人] 2021-02-02 18:11

How can we push code to multiple servers? We have many servers which needs to have the same copy of the code. It is difficult to push to individual server. I know mercurial has

3条回答
  •  日久生厌
    2021-02-02 18:54

    In your .hg/hgrc file you should have a [paths] directive, which contains your default location. What about adding something like:

    [paths]
    default = http://server1
    server2 = http://server2
    

    And then do a:

    hg push default
    hg push server2
    

提交回复
热议问题