Hello Sam, > We currently use VisualSVN Server version 2.7.7 standard edition, I > would need a hook to enforce comment whenever user performs SVNUpdate. Any > information on how to implement would be appreciated.
I guess that you ask about `svn commit` log message, not about `svn update` because updating does not require to enter a log message. You can setup a pre-commit hook script to analyze the log message of the incoming transaction and reject the commit based on the number of characters of the message. For example, in a pre-commit hook script you can call `svnlook` to analyze the incoming transaction and if log message is empty, then reject the commit. Here is the sample hook script (Windows Batch script). To apply the hook script, follow these steps: 1. Start VisualSVN Server Manager, 2. Locate the repository in the list of your repositories, 4. Right-click the repository and choose Properties, 5. Paste the following script as "pre-commit hook" in Hooks tab and click Apply: NOTE: The hook script is a sample and provided AS-IS without any warranty or support. [[ @echo off :: Stops commits that have empty log messages. @echo off setlocal rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2 "%VISUALSVN_SERVER%bin\ svnlook" log "%REPOS%" -t %TXN% | findstr ...... > nul if %errorlevel% gtr 0 (goto err) else exit 0 :err echo. 1>&2 echo Your commit has been blocked because you didn't enter a comment. 1>&2 echo Write a log message describing the changes made and try again. 1>&2 exit 1 ]] Thank you! -- With best regards, Pavel Lyalyakin VisualSVN Team -- You received this message because you are subscribed to the Google Groups "VisualSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to visualsvn+unsubscr...@googlegroups.com. To post to this group, send email to visualsvn@googlegroups.com. Visit this group at http://groups.google.com/group/visualsvn. For more options, visit https://groups.google.com/d/optout.