May 27 2007

Improved Subversion auto-checkout

Tags: , Filed under: Written in Englishhugo @ 1:53

My whole Web site is under Subversion, and any commit I make is automatically propagated online. I have been achieving this using Yann Dirson’s svn-auto-checkout script. However, as my site has grown, the complete update that the script runs has become painful, as it locks the online checked-out copy while it does the update.

I therefore plugged svnlook into the process, to update only the files and directories changed during a commit. See if it works for you: svn-auto-look-and-checkout.

3 Responses to “Improved Subversion auto-checkout”

  1. frustratedSVNUser says:

    Hi, I am trying to do exactly this. Once I commit a new/modified file to SVN, I would like the post-commit hook to automatically copy the file to a different server for testing purposes (We are using a shared development environment.) My question: Can I specify the destination path to be a path on a different machine? If so, how? Or does it have to be a local path? Thanks in advance.

  2. hugo says:

    I’m afraid that the script currently only allows a check-out on the host where the repository resides. That said, it should be possible to do the svn update via ssh to a different host.

  3. frustratedSVNUser says:

    Can you give me some pointers on how I can go about doing that? Thanks.

Leave a Reply

Please copy the string 0nnlZ4 to the field below: