开发者

Mercurial repository architecture

开发者 https://www.devze.com 2023-04-13 00:50 出处:网络
We have 3 ce开发者_JAVA技巧ntral mercurial repositories, one is the stable version that is the code that went out in the last release, and the other two are dev repositories.

We have 3 ce开发者_JAVA技巧ntral mercurial repositories, one is the stable version that is the code that went out in the last release, and the other two are dev repositories.

Most of the time I will be working on one of the dev repositories (but occasionally may have to make a change to the other dev repository or to the stable repository).

Do I create three directories on my local machine and create a mercurial repository in each, or is there a way in which I can work from a single repository on my machine and synchronise my local repository with the appropriate central one?

What's the best approach here?


3 directories is the best approach.

You can work with a single local clone, but you will have quite a bit of work ensuring you don't push things to a repository that you're not supposed to.

Having 3 distinct local folders makes it easier to ensure you're working in the right one, and ensure you're not accidentally pushing to the production/release repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号