Check for a log message prior to allowing a commit
This configuration checks that the user has added a message along with their commit via the CommitRequirements element. If no comment is added, the commit will fail and the user will get the failure message explaining why. This also demonstrates that you can have more than one CommitRequirement element. At least one will need to be satisfied in order for the commit to be allowed.
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd" LoggingLevel="INFO" MaximumEMailSizeInMb="5"
MaximumEmailSubjectChars="255">
<SVNConfig ExePath="C:\Program Files\Subversion\bin\svnlook.exe" />
<RepoPathConfig ControlledPaths="/">
<CommitRequirements>
<CommitRequirement Description="A commit log message is required" Regex="\w"
RegexFailureMsg="A commit log message is required. Please enter a log message" RegexIgnoreCase="true" />
<CommitRequirement Description="A longer commit message is required" Regex=".{10}"
RegexFailureMsg="A log message of at least 10 characters is required!" RegexIgnoreCase="true" />
</CommitRequirements>
</RepoPathConfig>
</subversionNotifyConfig>