Automatically keep htdocs folder in sync with SVN repository?

I’ve setup both a http server and svn server and have a SVN project residing in the “/srv/svn/kdrepos/THOR/” directory.
I would like this project to automatically do a checkout into the /srv/www/htdocs/ on update/commit.

Is this in any way possiblely? Some sites (xp-dev) for example offer an option to have a repository automatically ‘added’ to a webserver. Does anyone know how is done?

I’d xp-dev if it wasn’t for the fact that I also need full access rights on the machine

I believe SVN offers a post-commit hook which allows you to do run arbitrary scripts, including a remote command to do a checkout.