Subversion Notify for Windows

A simple executable for your complex Subversion needs.
Home
About...
Manual
Contact/Support
Quick Start
Sending E-Mails
Enforce Log Message
Integrate Bugzilla
News / Release
Etc...

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.0standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsdLoggingLevel="INFOMaximumEMailSizeInMb="5

         MaximumEmailSubjectChars="255">
    <!-- Basic configuration of where to locate the SVN executables -->
    <SVNConfig ExePath="C:\Program Files\Subversion\bin\svnlook.exe" />
          
    <!-- An example of a simple commit requirement – the user needs to add some commit message-->
    <RepoPathConfig ControlledPaths="/">
       <CommitRequirements>
          <!--This simple Regular Expression makes sure at least something was typed. Make the pattern more complex to meet you own needs. -->
          <CommitRequirement Description="A commit log message is requiredRegex="\w"
                  RegexFailureMsg="A commit log message is required. Please enter a log message" RegexIgnoreCase="true" />


          <!--This simple Regular Expression makes sure the message is at least 10 characters. Make the pattern more complex to meet you own needs. -->
          <CommitRequirement Description="A longer commit message is requiredRegex=".{10}"
                  RegexFailureMsg="A log message of at least 10 characters is required!" RegexIgnoreCase="true" />

       </CommitRequirements> 
   </RepoPathConfig>

</subversionNotifyConfig>