Created
June 22, 2012 11:22
-
-
Save dgk/2972171 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE=$1 | |
if [ -z "$FILE" -o ! -f "$FILE" ] ; then | |
echo specify valid regular file name | |
exit 1 | |
fi | |
REVISIONS=`svn log -q $FILE |grep -vE '^---' | sed -e 's/ .*//'` | |
for REV in $REVISIONS | |
do | |
echo fetching revision `echo $REV | sed -e 's/r//'` | |
svn up -q -r $REV $FILE | |
mv $FILE $FILE.$REV | |
done | |
svn up -q $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment