How do I keep my branches up to date with the 'default' branch under Mercurial?

六眼飞鱼酱① 提交于 2019-12-21 22:04:21

问题


Let's say I have the following workflow with Mercurial:

stable (clone on server)
    default (branch)
    development (clone on server)
        default (branch)
        bugs (branch)
            developer1 (clone on local machine)
            developer2 (clone on local machine)
            developer3 (clone on local machine)
        feature1 (branch)
            developer3 (clone on local machine)
        feature2 (branch)
            developer1 (clone on local machine)
            developer2 (clone on local machine)

My main line of development which is always in a release ready state is 'default'. So the 'default' branch in the 'development' clone is always release-ready.

Now suppose I'm developer1 working on feature2. And let's say also that feature2 takes several months.

It's pretty obvious that I'm going to want to keep my 'feature2' branch up to date with the 'default' branch. Does this make sense? How would I go about doing this with Mercurial?


回答1:


It seems obvious to me - there might be other subtleties I don't see; merge in the latest changes from default.




回答2:


You should just be able to pull from default to feature2, unless there is some additional complexity I'm missing?



来源:https://stackoverflow.com/questions/2563887/how-do-i-keep-my-branches-up-to-date-with-the-default-branch-under-mercurial

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