I am using CollabNet Subversion in Windows, I been searching around on how can I force user to put in their comment before committing their changes into SVN. The search result are more focus in Linux enviroment, and very less resource in Windows environment. So lucky that I found this link which is targeted on Windows.
Unfortunately, with the code provided, I still couldn’t get it work in TortoiseSVN and EclipseSVN. According to the comment provided, the pre-commit.tmpl should be rename to pre-commit.bat, but it still not working.
Did you put that script into \hooks folder? If yes I suspect that script mentioned lacks environment setup (since hooks are executed in a clean environment). From SVN book:
Try running with just echoes at first to be sure it is invoked by server at all:
If it’s working, then try adding this on the top of that batch:
BTW, I also found a related article here (contains also pre-commit hook example).
Update
You may also try solution for the same problem here: SVN Pre Commit Hooks
Update2
I think you are messing up client side hooks with server side ones. The first is invoked by SVN client, so parameters passed and how results are interpreted are totally client specific. I suppose the TortoiseSVN hooks are not intended to reject commits (i.e. errorlevel is not checked) but can be used for integration with other systems. See also example here. To really reject commits – you need to add these hooks on SVN server.