diff --git a/contrib/convert-repo b/contrib/convert-repo --- a/contrib/convert-repo +++ b/contrib/convert-repo @@ -6,19 +6,20 @@ # In its current form, it's hardcoded to convert incrementally between # git and Mercurial. # -# To use, you must first import the first git version into Mercurial, -# and establish a mapping between the git commit hash and the hash in -# Mercurial for that version. This mapping is kept in a simple text -# file with lines like so: +# To use, run: +# +# convert-repo +# +# (don't forget to create the repository beforehand) +# +# The is a simple text file that maps a git commit hash to +# the hash in Mercurial for that version, like so: # # # -# To convert the rest of the repo, run: -# -# convert-repo -# -# This updates the mapfile on each commit copied, so it can be -# interrupted and can be run repeatedly to copy new commits. +# If the file doesn't exist, it's automatically created. It's updated +# on each commit copied, so convert-repo can be interrupted and can +# be run repeatedly to copy new commits. import sys, os, zlib, sha, time