Bug 330938 - Merge Eclipse Incubator with e4

convert the platform-incubator CVS module
diff --git a/scripts/migration_script.sh b/scripts/migration_script.sh
index 64414af..772cc84 100644
--- a/scripts/migration_script.sh
+++ b/scripts/migration_script.sh
@@ -1343,4 +1343,135 @@
 scp -r deploy.$MODULE_NAME pwebster@build.eclipse.org:/gitroot/e4/${MODULE_NAME}.git
 #
 # DONE, org.eclipse.e4.languages
+#
+
+##################################################
+# next, eclipse.platform.incubator since it should be isolated
+MODULE_NAME=eclipse.platform.incubator
+
+cd $ROOT
+CVS_LOC=$ROOT/cvsroot.$MODULE_NAME
+mkdir -p $CVS_LOC/e4
+cd $CVS_LOC
+cvs -d :local:$(pwd) init
+
+MIGR_PASS=$MIGR/eclipse.platform.incubator/pass1
+cp -r /cvsroot/eclipse/e4/$MODULE_NAME $CVS_LOC/e4
+
+# clean the CVS repo of links
+find $CVS_LOC -type l|xargs -n 1 rm
+
+# generate the import data
+# make sure the author names are correct
+# make sure your options file points to the correct tmp cvsroot
+cd $ROOT
+vi $MIGR_PASS/cvs2git.options
+rm -rf cvs2svn-tmp symbol-info.txt cvs2git_log.txt
+cvs2svn-trunk/cvs2git --options=$MIGR_PASS/cvs2git.options >cvs2git_log.txt 2>&1
+cp symbol-info.txt cvs2git_log.txt $MIGR_PASS
+
+
+
+# create a git repo to be used for verification
+git init verify.$MODULE_NAME
+cd verify.$MODULE_NAME
+cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import
+
+python ../cvs2svn-trunk/contrib/git-move-refs.py
+git prune
+git repack -a -d --depth=250 --window=250
+git gc --aggressive
+git repack -a -d --depth=250 --window=250
+
+# verify the repo - this can take long, so for your first test skip this step.
+cd $ROOT
+rm -rf compare-tmp
+mkdir compare-tmp
+python $ROOT/cvs2svn-trunk/contrib/verify-cvs2svn.py \
+--git $CVS_LOC/e4/$MODULE_NAME \
+$ROOT/verify.$MODULE_NAME \
+--tmp=$ROOT/compare-tmp --diff >$MIGR_PASS/compare-log.txt 2>&1 &
+
+# create a git repo to continue the conversion
+cd $ROOT
+git init target.$MODULE_NAME
+cd target.$MODULE_NAME
+
+cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import
+python ../cvs2svn-trunk/contrib/git-move-refs.py
+git prune
+git repack -a -d --depth=250 --window=250
+git gc --aggressive
+git repack -a -d --depth=250 --window=250
+
+
+
+# Fixing the Delete only tags:
+cd $ROOT/target.$MODULE_NAME
+/bin/bash $MIGR/scripts/fix_tags.sh >$MIGR_PASS/tag_report.sh
+grep ^git $MIGR_PASS/tag_report.sh >$MIGR_PASS/mv_tags.sh
+# examine them
+/bin/bash $MIGR_PASS/mv_tags.sh
+
+# now examine the repo, hopefully the tags and branches that we care about are in decent shape.
+# In my case, I see Cherrypick markers for a couple of tags.  When the conversion is complete and most
+# people are happy, a developer will have to examine these commits to see if they
+# can be simplified.
+
+grep ^Cherry $MIGR_PASS/tag_report.sh >$MIGR_PASS/tag_cherrypicks.txt
+grep "R[34]_" $MIGR_PASS/tag_cherrypicks.txt
+# No R?_ Cherry pick tags
+
+git branch >$MIGR_PASS/branches.txt
+git tag >$MIGR_PASS/tags.txt
+
+# last step before you deploy:
+
+cd $ROOT
+cat - >gitignore <<EOF
+/*/*/bin/
+*~
+*.rej
+*.bak
+*.patch
+javacore.*
+heapdump.*
+core.*
+Snap.*
+/*/*/target/
+
+EOF
+
+cd target.$MODULE_NAME
+
+# from http://stackoverflow.com/questions/3895453/how-do-i-make-a-git-commit-in-the-past
+
+new_file=$(git hash-object -w ../gitignore)
+git filter-branch \
+--index-filter \
+'git update-index --add --cacheinfo 100644 '"$new_file"' .gitignore' \
+--tag-name-filter cat \
+-- --all
+
+git reset --hard
+
+#create deploy
+cd $ROOT
+git clone --bare  target.$MODULE_NAME deploy.$MODULE_NAME
+cd deploy.$MODULE_NAME
+git remote rm origin
+git config -l
+# git config --add core.sharedrepository 1
+cp /gitroot/platform/eclipse.platform.ui.git/hooks/pre-receive hooks
+
+#final pack and prune step
+git prune
+git repack -a -d --depth=250 --window=250
+git gc --aggressive
+git repack -a -d --depth=250 --window=250
+
+cd $ROOT
+scp -r deploy.$MODULE_NAME pwebster@build.eclipse.org:/gitroot/e4/${MODULE_NAME}.git
+#
+# DONE, eclipse.platform.incubator
 #
\ No newline at end of file