Commit a811adc8 authored by vasil's avatar vasil

export.sh:

Instead of doing "svn log" for every revision between $START_REV and $END_REV,
lookup the revisions which actually contain changes to this branch and do
"svn log" and "svn diff" only for them.

This makes the script many times faster.

I have checked that both old and new variant create identical snapshots.
parent 0e56d696
......@@ -28,18 +28,11 @@ mkdir to-mysql{,/storage,/patches,/mysql-test{,/t,/r,/include}}
svn log -v -r "$START_REV:BASE" > to-mysql/log
svn export -q . to-mysql/storage/innobase
REV=$START_REV
while [ $REV -le $END_REV ]
for REV in $(svn log -q -r$START_REV:$END_REV |grep ^r |cut -f 1 -d ' ' |cut -b 2-)
do
PATCH=to-mysql/patches/r$REV.patch
svn log -v -r$REV > $PATCH
if [ $(wc -c < $PATCH) -gt 73 ]
then
svn diff -r$(($REV-1)):$REV >> $PATCH
else
rm $PATCH
fi
REV=$(($REV + 1))
svn diff -r$(($REV-1)):$REV >> $PATCH
done
cd to-mysql/storage/innobase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment