Implementing a SVN pre-commit hook on a Windows 2003 SP1 SE server

0 views
Skip to first unread message

Patrick

unread,
Nov 14, 2007, 7:03:42 AM11/14/07
to Subversion SVN
I'm trying to implement a pre-commit hook (checks that the commit
contains
a commit message) on a Windows Server.

The Apache Server is running under the "Local System" account.

The pre-commit file is called "pre-commit.bat" and contains the
following:

PATH=C:\PROGRA~1\Python24;c:\windows\system32
python.exe C:\Repositories\test\hooks\check_for_commit_comment.py

When I run it by double-clicking it - it works! I have it output a
test file to prove it's being executed.

When I try to commit a file via TortoiseSVN without a comment - it
doesn't work (i.e. I can commit without a comment) - I'm lost? All
and any suggestions welcome.

Kind Regards,

Patrick

Reply all
Reply to author
Forward
0 new messages