I have an SVN repo that is managed via web interface (svn checkout https://server/repos/proj1
etc.), which all works.
Now, with every commit
I wish to copy the newest version in a directory, e.g. into /home/user/somewhere/proj1/rev102/
using a shell command on the server.
If I remember correctly you can call a command upon every commit
and I am not worried much about how it is done (that failing I could create a cron
job), but:
How do I extract the newest files from the svn repo directory/files using a locally running shell script without using svn update
, svn login mechanisms etc.? All the files are there and accessible from the shell, so that ought to be easy?