问题
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