3 gitrepro
=/Users
/lha
/src
/heimdal
/git-trunk
12 -i) incremental
="yes"; shift ;;
13 -*) echo "$0: Bad option $1"; echo $usage; exit 1;;
17 if test $# -ne 0; then
22 if [ "$incremental" = no
] ; then
24 (cd $gitrepro && git tag
-d git2svn-syncpoint-master
)
25 (cd $gitrepro && git tag
-d git2svn-syncpoint-heimdal-1-1-branch
)
28 echo "####full import of master -> trunk"
31 $gitrepro repro ||
exit 1
33 echo "####full import of branch -> branches/heimdal-1-1-branch"
36 --svn-prefix=branches
/heimdal-1-1-branch \
37 --git-branch=heimdal-1-1-branch \
38 $gitrepro repro ||
exit 1
40 echo "####incremental import of master -> trunk"
43 $gitrepro repro ||
exit 1
45 echo "####test that repro looks ok at a glance"
47 svn
=file://`pwd`/repro
49 svn
ls $svn |
grep trunk
> /dev
/null ||
exit 1
50 svn
ls $svn/branches |
grep heimdal-1-1-branch
> /dev
/null ||
exit 1
52 echo "####all tests passed"