How do you resolve the error “abort uncommitted changes” when trying to “hg merge”, when there are no changes?

∥☆過路亽.° 提交于 2019-12-11 08:44:37

问题


I did a fresh checkout of my mercurial project and updated to the tip. I am trying to merge with another branch, but get the error abort uncommitted changes.

> hg up
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
updated to "f9e1acf1f459: <commit message>"
1 other heads for branch "<branch>"

> hg merge
abort: uncommitted changes
(use 'hg status' to list changes)

> hg status



> hg status -i



> hg status -u



> hg summary
parent: 7008:f9e1acf1f459 tip
 <message for last commit>
branch: <branch>
commit: (clean)
update: 26 new changesets, 2 branch heads (merge)

>hg version
Mercurial Distributed SCM (version 4.9.1)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2019 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I have tried using an older version of mercurial (4.7.1), with the same results.

How do I resolve this?

来源:https://stackoverflow.com/questions/55980310/how-do-you-resolve-the-error-abort-uncommitted-changes-when-trying-to-hg-merg

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