From 2eba1c38ec9a8d72540bae94160ca3ba5546e189 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 7 Mar 2007 15:10:39 +0000 Subject: [PATCH] Add some simpe readme with legal stuff, usage and some notes Signed-off-by: Rocco Rutte --- README.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..e25075b --- /dev/null +++ b/README.txt @@ -0,0 +1,33 @@ +hg2git.(sh|py) - mercurial to git converter using git-fast-import + +Legal +===== + +The scripts are licensed under the GPL version 2 and were written by +Rocco Rutte with hints and help from the git list and +#mercurial on freenode. + +Usage +===== + +Using it is quite simple for a mercurial repository : + + mkdir repo-git # or whatever + cd repo-git + git init + hg2git.sh + +Incremental imports to track hg repos is supported, too. + +Notes +===== + +As there's no real config interface to hg2git.py (the worker script), +checkpointing each 1000 changesets is hard-coded. "checkpointing" means +to issue the "checkpoint" command of git-fast-import which then flushes +the current pack file and starts a new one. This is sufficient for the +initial import. + +However, per incremental import with fewer than 1000 changesets (read: +most likely always), a new pack file will be created. Every time. As a +consequence, the git repo should be repacked quite often. -- 2.11.0