Mercurial - Convert error - unable to convert merge commit

牧云@^-^@ 提交于 2019-12-11 09:12:51

问题


I have a huge repository with many subfolders in the following layout:

MainRepo
├── Folder1
├── Folder2
├── Folder3
├── Folder4
└── Folder5

I'm trying to create another repo from folders Folder1, Folder2 and Folder3.

To do that I created the filemap to use in convert like this:

include Folder1
include Folder2
include Folder3
rename .

But when I try to convert the repository using:

hg convert  --filemap filemap MainRepo/ NewRepo

I get the following error:

...
<rev> message
1136 Merge with default
abort: unable to convert merge commit since target parents do not merge cleanly (file Folder1/Project1.csproj, parents 65b9b85aa32c and 923b315f094c)

Does any one had this kind of problem in the past? How to get rid of this kind of error? I tried to close branches that were merged with default, but it was of no help.

Also, where I can find resources on how to clean up repos? This repo uses a lot of named branches and they are very messy.


回答1:


I was able to solve this by closing all my inactive heads and also removing the rename . at the end. For what I wanted it worked just fine.



来源:https://stackoverflow.com/questions/44702719/mercurial-convert-error-unable-to-convert-merge-commit

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