- clone a mbedTM repository as mercurial repo
- put the cloned repo to github(or similar) as a git repo with mbed repo revision
statushistory - another git repo uses the converted github repo as a submodule
- fast-export
- seems best, but one direction convert?
- cosmin/hg-git
- clones mercurial repo as git repo, uses fast-export, but has issue
- I faced the same problem also(automatically aborts)
- not tested what happens to mbed repo with this issue
- clones mercurial repo as git repo, uses fast-export, but has issue
- glandium/git-cinnabar
- seems to have forward/backward converters
- not tested
- felipec/git-remote-hg
most likelythis is the official helper from git project
- python 2.7 and mercurial
get git-remote-hg
$ sudo apt-get install git-remote-hg
- Ubuntu 16.04 has a package
$ git clone hg::https://k4zuki:<password>@developer.mbed.org/users/k4zuki/code/AkiSpiLcd/
$ cd AkiSpiLcd
$ touch README.md
$ git add README.md
$ git commit -m"add README.md"
$ git push
searching for changes
no changes found
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
To hg::https://k4zuki:********@developer.mbed.org/users/k4zuki/code/AkiSpiLcd/
b7cc2d6..3b430ff master -> master
$ git remote add github [email protected]:K4zuki/AkiSpiLcd.git
$ git pull github master
*** merge commit editor appears; edit if necessary, and save-close ***
then push both remotes
$ git push origin master
$ git push github master
Using git-hg
But this is really complicated way.
I think mbed repository should be managed in git too.
A simplest way is pull and push manually :)