h2-migrate is a docker image that provides the infrastructure for migrating a Mercurial project to git using the fast-export tool
Clone the repository
Using docker build the image
docker build -t h2-migrate .
We need to specify the following paths and pass them to h2-migrate: -
- MERCURIAL_REPO: local path to the mercurial repository
- TARGET_DIR: local output directory for git repository
Either using docker
docker run -v [MERCURIAL_REPO]:/mercurial -v [TARGET_DIR]:/git h2-migrate
Or using docker-compose (edit in the docker-compose.yml)
docker-compose run h2-migrate
This project is licensed under the MIT license
- Fast export team for the fast-export tool