$ cat svn2git-tortoisesvn.sh
#!/bin/sh
export LC_ALL=C
export WC_ROOT=/home/cauchy/wc/git
export REPO_NAME=tortoisesvn
echo "[`date`] Start import & pack ..."
mr=0
while [ $mr -le 9000 ]; do
if test -f $WC_ROOT/$REPO_NAME/.git/SVN2GIT_HEAD; then
echo "[`date`] clean up ..."
cd $WC_ROOT/$REPO_NAME
git-read-tree -m -u SVN2GIT_HEAD HEAD && rm -f .git/SVN2GIT_HEAD
echo "[`date`] clean up finished"
fi
mr=$(($mr + 1000))
echo "[`date`] Start import up to revison $mr ..."
git-svnimport -v -i -r -o master -l $mr -C $WC_ROOT/$REPO_NAME
http://tortoisesvn.tigris.org/svn/tortoisesvn
echo "[`date`] Finish import up to revison $mr"
cd $WC_ROOT/$REPO_NAME && git-repack -a -d --window=64 --depth=64
echo "[`date`] Finish repack revison $mr"
cd $WC_ROOT/$REPO_NAME && find .git -name pack | xargs ls -l
done
echo "[`date`] Finished import & pack"
2006/12/12, Sasha Khapyorsky <sashak@voltaire.com>:
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Re: init's children list is long and slows reaping children. |
| Kohei KaiGai | [PATCH 0/3] exporting capability name/code pairs (final#2) |
git: | |
| Gerrit Renker | [PATCH 33/37] dccp: Initialisation framework for feature negotiation |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Mark Ryden | Re: Linux Wireless Mini-Summit -- Ottawa -- July 22, 2008 |
