We are using Subversion Edge 5.2 on Windows.
Whenever we create a repo, a hooks folder within the repo is pre-populated with the following templates:
- post-commit.tmpl
- post-lock.tmpl
- post-revprop-change.tmpl
- post-unlock.tmpl
- pre-commit.tmpl
- pre-lock.tmpl
- pre-revprop-change.tmpl
- pre-unlock.tmpl
- start-commit.tmpl
Where are the master copies kept? I want to override post-commit.tmpl so whenever we create a new repo it uses our version, it saves us the manual step of going to the folder and replacing the file manually.
TIA
I think this is a misunderstanding: These hooks are examples and templates (.tmpl). They are not runnable so even if you modify them, you need to make them executable. So a manual step is still necessary.
They are defined directly in SVN Source code: Link to repos.c (search for "/* Start-commit hook. */")
So unfortunately you cannot change the default hook templates(unless you want to patch svn sourcecode and build it yourself..)