kilork.github.io

hg-git-fast-import

Mercurial to Git, history and awkward parts included.

A Mercurial repository converted into a Git repository through git fast-import

Merging, tags, closed branches, a decade of revisions — moving off Mercurial is usually where history quietly gets lost. This converter feeds the repository through git fast-import and keeps what was there.

What changes for you

Getting it

cargo install hg-git-fast-import
hg-git-fast-import single ~/work/old-project ~/src/github.com/me/old-project
hg-git-fast-import multi --help       # several hg repos into one git repo
hg-git-fast-import build-marks        # rebuild the saved state if needed

Where to look

source · crate