Container to migrate from Mercurial repository into Git repository, directly between remotes via Docker container.
Mercurial --clone--> [This Container] --push--> Git
I developed this for my own use case but thought I'd share this.
Please test this yourself first - I hacked this up in a day so use at your own risk ๐ .
Basically a recent version of docker
and docker-compose
- developed with these:
- Docker >= 20.10.12
- docker-compose >= 1.29.2
-
Create your needs-specific
docker-compose.yml
(See docker-compose.yml.template for help)# Make a copy from template cp docker-compose.yml.template docker-compose.yml # Edit it to your needs vim docker-compose.yml
-
Run the migration container:
./run-hg-git-migration.sh
-
Profit ๐
-
Create
docker-compose.yml
(see above) -
Run this in special debug mode
./run-hg-git-migration.sh development
-
Get shell into container
./bash_shell-hg-git-migration.sh
My work wouldn't be possible without these awesome people!
- Frej Drejhammar (frej): For his fast-export code!
- Git Team: For their mercurial to Git conversion guide