Svn – Syncing a directory with an SVN repository

svnversion control

I need to create/update/delete files in a directory (and its subdirectories) every time an SVN repo is updated.

I was told this can be done writing a script which uses output from svnlook changed command.

I wonder: Is there an already written script for this?

Added: I think svnsync is not suitable for this, as it needs the synced repository to have .svn folders what is no good for us. (it was even more wrong: svnsync synchronized repos not working dirs, which I need to synchronize)

Best Answer

svnlook is usually used in a post-commit hook, but the hooks are run by SVN server. So unless your directory is located on the SVN server, it won't do you much good.

Consider creating a simple cron job with svn update.