Is there anyway to set a custom commit hook to be a "default" hook when repositories are created?
|
feedback
|
|
Outside of the nine standard hooks installed into a new repository by the 'svnadmin create /path/to/repo' command (start-commit, pre/post-commit, pre/post-revprop-change, pre/post-lock, and pre/post-unlock), I know of no way to have additional hooks automatically included as a "default" hook for all newly created repositories. I suppose you could build a wrapper shell script for creating new repositories that calls the svnadmin create command with a variable set for the repository path followed by a copying of the custom commit hook into the path/to/repo/hooks folder and use that for all new repositories. Lastly, because you mention that this custom hook in particular is a commit hook, I should repeat the warning given by Version Control with Subversion when discussing hook scripts (emphasis mine):
| ||||
|
feedback
|