Using post commit hook to export in VisualSVN Server

Brad picture Brad · Dec 23, 2008 · Viewed 9.9k times · Source

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?

Answer

James Lawruk picture James Lawruk · Jan 20, 2011

Do the following in the VisualSVN Server Manager MMC console:

  1. Select your repository

  2. Right click Properties

  3. Select the Hooks tab

  4. Select the post-commit hook

  5. 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>
    
  6. Click Ok.