First page Back Continue Last page Overview Graphics
Hook Scripts (4/6)
pre-commit
- Run when the commit transaction is complete, but before it is committed
- Typically used to implement access controls based on content or location within the repository
- Passed two arguments:
- Path to repository
- Name of transaction being committed (which must be fed to svnlook to extract specifics)
- A non-zero exit value will result in the commit being disallowed, and any output written to standard error will be reported to the user's Subversion client
- http://www.jmglov.net/unix/scripts/svn-hooks/pre-commit
Notes: