Search code examples
svntortoisesvnpost-update

SVN post-update hook per project?


It appears that post-update hooks apply to the entire SVN setup on a machine, but I'm looking to set individual hooks per project. From what I can see, you set up your hooks in settings, which is global.

Any idea as to how I can pull off post-update hooks per project?


Solution

  • Its simple really - put code (a regex for the project path) in your hook that does nothing if its not the project you wanted to hook.

    If you need to know the repository path of the updated working copy, use svninfo.