[英]Merging pulled changesets to a feature branch in Mercurial
I created a feature branch from my main ( default
) branch. 我从主( default
)分支创建了一个功能分支。 (ie hg branch feature/name
). (即hg branch feature/name
)。
I did a few commits there. 我在那里做了一些承诺。 Now I want to push this branch and create a pull-request. 现在,我要推送此分支并创建一个请求请求。 But, before doing this, I'd like to make my feature branch up-to-date. 但是,在此之前,我想使功能分支保持最新。
So, I started with hg pull
command, and it downloaded a couple of changesets. 因此,我从hg pull
命令开始,它下载了几个变更集。 Then I proceeded with hg update
, but Mercurial said that nothing was updated ( 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
). 然后我继续进行hg update
,但是Mercurial说什么都没有更新( 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
)。
So, it looks like new changesets were applied only to default
branch, but not to my feature branch. 因此,看起来新变更集仅应用于default
分支,而不应用于我的功能分支。
How should I apply those changesets to my feature branch? 我应该如何将这些变更集应用于功能分支?
You next merge default into your feature branch with: 接下来,您将default合并到功能分支中:
hg merge default
That merges the most "recent" head" with the branch label "default" into your currently checked out branch. You'll need to do a hg commit
afterward if the merge creates a new changeset (which it will unless there are no new changes in default
since last you merged it in. 它将带有分支标签“ default”的最“最近的head”合并到当前已签出的分支中。如果合并创建了一个新的变更集(除非没有新的变更,否则它将需要稍后)进行hg commit
自上次合并以来, default
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.