Mercurial Merge of Two Named Branches: Working Directory Has No Ancestor

青春壹個敷衍的年華 提交于 2020-01-01 09:54:09

问题


I have two named branches, SPRINT_009 and SPRINT_010. Some changesets have been committed to SPRINT_009 that I would like to merge into SPRINT_010. I was able to merge the changesets from branch_one back into default without any trouble. I am having problems merging the changesets from branch_one into branch_two.

default       A -- B -- C -- G -- H -- I -- J -- K -- L -- N -- O -- P
                         \                             \            /
SPRINT_009     D -- E -- F -----------------  ---------- ----------
                                                         \
SPRINT_010                                                M

Here are the commands I am using:

hg update branch_two
hg merge branch_one

However I get the following message:

abort: merging with a working directory ancestor has no effect

Does anyone know what exactly I am doing wrong?

**EDIT: I've added a picture of the graph. The drawing is conceptual **


回答1:


The problem was that I hadn't performed an hg pull before attempting the merge. Normally we do our development on a Windows machine using TortoiseHg. We modified the name of one of our resources on the support branch, from fooBAR to fooBar and ran into the mercurial case folding problem. We were trying to get around this by merging the branches on a Linux box. I am so used to using TortoiseHg that I forgot the most basic of commands!



来源:https://stackoverflow.com/questions/12310131/mercurial-merge-of-two-named-branches-working-directory-has-no-ancestor

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