convert-repo: update usage information
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 16 Dec 2006 20:18:36 -0200
changeset 3917 645e1dd4b8ae
parent 3916 b1806b211910
child 3918 a413f5c29c46
convert-repo: update usage information
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 <git-dir> <hg-dir> <mapfile>
+#
+# (don't forget to create the <hg-dir> repository beforehand)
+#
+# The <mapfile> is a simple text file that maps a git commit hash to
+# the hash in Mercurial for that version, like so:
 #
 # <git hash> <mercurial hash>
 #
-# To convert the rest of the repo, run:
-#
-# convert-repo <git-dir> <hg-dir> <mapfile>
-#
-# 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