I want to convert a Git repository with several branches to a Mercurial repository. Using hg convert
only one default branch is created which then has a head for each Git branch.
I have already read How are git branches imported into mercurial with hg convert? and am aware that it is impossible to know which commit belongs to which branch in Git. However, a repository with as many heads as branches is not a workable solution for me.
Since all branches are different, I obviously can not merge them all to one single head.
How can I convert or modify the converted repository in such a way that I have each head on a different branch? Note that I do not necessarily need to have all existing commits assigned to the right branch but that I want commits from this moment on to be assigned to the right branch and only have one head per branch.