gitmercurialmercurial-convert

Converting Git to HG with only one branch


I have a problem when trying to convert.

There is "master" branch and also another branch named "testing"

When I use standard method hg convert gitbranch hgconvertedbranch I get two heads and need merge. - It merge somehow both branches and I get sources and changes different from original "master" branch which only I need to convert.

Do you have any solution for that? Any option for "hg convert" command to make convert really only master branch and not all togerther? Thank you.


Solution

  • Just make a local clone of your git repository with only one branch, and convert to hg from that.