#1 /bin/sh
# get version
svn --version

# create empty repository
svnadmin create /tmp/bugrepos

# checkout the empty repository
svn checkout file:///tmp/bugrepos checkout

# create some initial structure in operating system
mkdir checkout/tags
mkdir checkout/trunk
mkdir checkout/trunk/somedir
echo this is some textfile>checkout/trunk/somedir/messages_de.properties

# add to version control
svn add --parents checkout/trunk/somedir/messages_de.properties checkout/tags

# create a german properties file as external to the german one (no symlinks on windooze)
svn propset svn:externals "../somedir/messages_de.properties messages.properties" checkout/trunk/somedir

# commit the initial structure
svn commit -m "initial checkin" checkout

# update the initial structure (to get the external on disk)
svn update checkout

# tag this as version 1.0
svn copy -m "version 1.0" file:///tmp/bugrepos/trunk file:///tmp/bugrepos/tags/1.0

# make some change
echo this some more text here>checkout/trunk/somedir/messages_de.properties

# commit the changes
svn commit -m "some changes" checkout

# tag this as version 1.1
svn copy -m "version 1.1" file:///tmp/bugrepos/trunk file:///tmp/bugrepos/tags/1.1

# done with workflow at provider
rm -Rf checkout/

# as client check out version 1.0
svn checkout file:///tmp/bugrepos/tags/1.0 clientcheckout

# a new nightly build succeeds -> look at new label
svn switch file:///tmp/bugrepos/tags/1.1 clientcheckout

# get info about external
svn info clientcheckout/somedir/messages.properties
