I\'ve already tried hg2git through fast-export and I\'ve already tried hg-git.
Both with no success. hg2git actually worked, but I had to ask a friend who runs a Uni
Here are all the pieces put together for a migration on Windows.
Prerequisites
During install, allow binding to .sh files.
Ensure that all tools are available in the PATH environment variable.
Migration
mkdir c:\git_work
cd c:\git_work
git clone http://repo.or.cz/r/fast-export.git
Now you need mercurial libs for python. Either get them from here or do the following steps.
Edit c:\git_work\fast-export\hg-fast-export.py:
import sys # move this line up here
# Add a new line that imports [mercurial libraries][2] from this zip:
sys.path.append(r'C:\Program Files\TortoiseHg\library.zip')
# ...above the old line:
from mercurial import node
mkdir MyNewGitRepo
hg-fast-import.sh -r c:\Path\To\MyOldHgRepo
Remove the migration scripts:
git clean -n # see what would happen
git clean -f # delete migration files
Restore missing files by resetting the index and working tree.
git reset --hard