I don\'t have a huge experience with Mercurial, I\'m mostly a Git guy.
I would love to mirror a specific Mercurial folder/file in a git Repository. What I\'m actuall
Seems as a more modern and easy to use alternative to perform the conversion https://github.com/buchuki/gitifyhg
pip install gitifyhg
git clone gitifyhg::<hgrepoaddress>
# done, you have a git repo with the entire history of the hg one
Maybe it helps someone today (when converting a mercurial repository to git, while retaining history). Tested to work with mercurial 4.0.1.
~$ git clone https://*old_hg_repo*
~$ git clone https://github.com/frej/fast-export.git
~$ cd fast-export
~$ git checkout tags/v180317
~$ cd ..
~$ mkdir new_git_repo
~$ cd new_git_repo
~$ git init
~$ .../fast-export/hg-fast-export.sh -r ../old_hg_repo/ --force
~$ git checkout HEAD
And finally to push your newly converted local repo.
~$ git push REMOTE '*:*'
You can (from Mercurial side):
--filemap
option convert part of original repo into smaller with only needed files|directoriesor (instead of hg-git), using Mercurial bridge in Git, clone|pull repository from Git