Mercurial 存储库架构
我们有 3 个中央 Mercurial 存储库,一个是稳定版本,即上一版本中发布的代码,另外两个是开发存储库。
大多数时候,我将在一个开发存储库上工作(但有时可能需要对另一个开发存储库或稳定存储库进行更改)。
我是否在本地计算机上创建三个目录并在每个目录中创建一个 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.