# HG changeset patch # User Alexis S. L. Carvalho # Date 1166307516 7200 # Node ID 645e1dd4b8ae0e43a03e5ed3375dd46d38c32af7 # Parent b1806b211910015d08b9d85fb16f71f22493654f convert-repo: update usage information diff -r b1806b211910 -r 645e1dd4b8ae contrib/convert-repo --- a/contrib/convert-repo Sat Dec 16 23:11:16 2006 +0100 +++ b/contrib/convert-repo Sat Dec 16 20:18:36 2006 -0200 @@ -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