Closed lefebvresam closed 9 months ago
I think this problem should be fixed with the patch in #316, please test it @lefebvresam and report back. #315 should help avoid this kind of problem in the future.
Merged this without confirmation, as running code which requires Python 3 with a Python 2 interpreter is sure to break things.
After cheking out the project again it's working. The only point is that the docker session is not persitent and I have to do 'pip install mercurial' every time I start the docker session. So I decided to not use the docker session anymore. Another remark is that the tool cannot automatically convert multiple heads from Mercurial into branches, which are understandable in GIT. You have to do for every head:
# (1) Unnamed heads:
# Git can only have one head, hg can have multiple heads in one branch.
# We will convert the unnamed heads into named branches.
# You can also ignore the head with option --ignore-unnamed-heads but you end up with commits being lost
hg update -r 174
hg branch r174-fix-git-conversion
hg commit -m "Fix git conversion (unnamed head r174)"
hg update default
# repeat for each unnamed head
the tool cannot automatically convert multiple heads from Mercurial into branches
Check this section of the README for ways to deal with multiple heads.
Ok I suppose that these tools are doing exactly the same what I did manually.
More or less.
I'm using python 3.8.10 in a docker session "ghcr.io/armmbed/mbed-os-env:master-latest".
When executing an export, I get the following message: