Mercurial存储库架构(Mercurial repository architecture)

编程入门 行业动态 更新时间:2024-10-24 10:19:42
Mercurial存储库架构(Mercurial repository architecture)

我们有3个中央mercurial存储库,一个是稳定版本,它是上一版本中发布的代码,另外两个是dev存储库。

大部分时间我将在一个开发人员库上工作(但偶尔可能需要对其他开发人员库或稳定存储库进行更改)。

我是否在本地计算机上创建了三个目录并在每个目录中创建了一个mercurial存储库,或者是否有一种方法可以从我的计算机上的单个存储库中工作并将我的本地存储库与相应的中央存储库同步?

这里最好的方法是什么?

We have 3 central 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个目录是最好的方法。

可以使用单个本地克隆,但是您将有相当多的工作,确保您不会将内容推送到您不应该使用的存储库。

拥有3个不同的本地文件夹可以更轻松地确保您在正确的文件夹中工作,并确保您不会意外地推送到生产/发布存储库。

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.

更多推荐

本文发布于:2023-07-22 18:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222312.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:架构   Mercurial   architecture   repository

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!