I used to have this post-commit hook to update my working-copy on my server:
#!/bin/sh
cd /var/www/MyWebAppStaging
svn up >> /var/log/svn/MyWebApp.log
Inside /var/www/MyWebAppStaging was obviously a working copy of my project
But now I have a several projects inside my repository. My repository lies under /var/svn/repository and has two projects:
MyWebApp --> trunk
MyMobileWebApp --> trunk
I have the following folders inside /var/www
/var/www
|-->MyWebApp
|-->MyWebAppStating
|-->MyMobileWebApp
|-->MyMobileWeAppStaging
I someone commits code to the MyWebApp-Project I would like my post-commit to update the working copy under /var/www/MyWebAppStaging. And if some commits code to the MyMobileApp-Project I would like my post-commit to upate the working copy under /var/www/MyMobileAppStaging
So how can I change my post-commit, that it updates the right working copy depending on the project the commit belonged to?