The post commit hook for Subversion now has reached a stage where I consider it feature complete. Newly added for this release:
- log4net for logging important information (ie exceptions) necessary for debugging a hook that is supposed to run automatically. Note that it uses v1.2.9 of log4net, which is a Beta release. The log file name is post-commit.log (you can change this in post-commit.exe.config)
- Nicely formatted commit mail. The change log line items are parsed, the A, U & D information is used to build Added, Modified & Deleted sections in the message.
Here is an example of the message format (from the #develop commit mailing list):
Date: 2005-04-10 20:06:25 +0200 (So, 10 Apr 2005)
New Revision: 1840
Added basic .manifest schema. Schema annotation displayed alongside
auto-completion list. Mixed namespaces and simple content types
now supported. Added attribute value auto-completion.
-- SvnPostCommitHook 18.104.22.168410 --
Installation Take all three files from \Hook and place them in your repository's hooks directory. Open post-commit.exe.config and modify the entries in the appSettings section to match your installation and needs.
Test it Run post-commit.exe once interactively from the command line to see if your installation is ok. Potential errors are only logged to post-commit.log, not to the Console. So be sure to check it!
Finally, the download: SvnPostCommitHook22.214.171.124411.zip (105.82 KB)