EGit - 合并时超过200个基数例外

时间:2013-12-11 13:36:53

标签: eclipse git svn egit

我试图将主分支合并到另一个分支。

我收到了以下奇怪的例外:

An internal error occurred during: "Merging with refs/heads/master".
Exception caught during execution of merge command. org.eclipse.jgit.errors.NoMergeBaseException: No merge     base could be determined. Reason=CONFLICTS_DURING_MERGE_BASE_CALCULATION. "More than 200 merge bases for:
a f66d2b5e393e04cea11e4b92a54e71bb6180cd5e
b 8ca54ccc2c1df01813049f13d7ab88d0a7d28060 found:
count 2"

这是什么想法?

PS:其他分支确实很好地合并为主。

2 个答案:

答案 0 :(得分:1)

你似乎被JGit bug 419641咬了,已在EGit 3.2及以上版本中修复过。

要解决此问题,请在命令行上执行合并,或参阅this answer以获取EGit中的变通方法。

答案 1 :(得分:1)

为了您的信息,我遇到了同样的异常,将origin / master拉入我的本地/主人。但是EGit和JGit都是3.3.1版本。

在Eclipse中拉取结果:

Exception caught during execution of merge command.
org.eclipse.jgit.errors.NoMergeBaseException: No merge base could be determined.
Reason=CONFLICTS_DURING_MERGE_BASE_CALCULATION.
"More than 200 merge bases for:
a f13ef2fd1cbcdae32a8b275fdec244819c219679
b 2bfec3e6ae8963376e9618c800dba67081616fea
found: count 2"

我尝试了3到4次硬重置,有或没有--no-ff,但总是得到完全相同的反应。

在命令行中拉结果(用法语表示抱歉,但是它起作用了,我只是在一个小文件中发生了微小的冲突):

$ git pull
Compression automatique du dépôt pour une performance optimum. Vous pouvez aussi
lancer "git gc" manuellement. Voir "git help gc" pour plus d'information.
Counting objects: 7132, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5341/5341), done.
Writing objects: 100% (7132/7132), done.
Total 7132 (delta 4315), reused 2693 (delta 1317)
Fusion automatique de src/path/to/tiny/file
CONFLIT (contenu) : Conflit de fusion dans src/path/to/tiny/file
La fusion automatique a échoué ; réglez les conflits et validez le résultat.

所以我想知道这是不是同一个bug,如果确实如此,它确实已经修复了。 :)