What is the easiest way to use post-commit hook with VisualSVN Server to export from the repository to a directory for staging / testing after a developer commits his changes?
Do the following in the VisualSVN Server Manager MMC console:
Select your repository
Right click Properties
Select the Hooks tab
Select the post-commit hook
Click the Edit button. Enter a line like this into the textbox:
"%VISUALSVN_SERVER%bin\svn.exe" export https://svn.yourserver.com:4433/svn/YourRepository/Websites/YourWebsite/ C:\inetpub\wwwroot\YourWebsite --quiet --non-interactive --force --username <youruser> --password <yourpassword>
Click Ok.