<ReproPathConfig ControlledPaths="/" ControlledRepros="file:///X:/path/to/my/svn" >
<MailTo EMailGroupName="group1" EMailType="HTML" EMailSuppressionChar="~" CustomSubjectFormat=" Revision #revision# Committed by #user# - Changes to #fileNames#"/>
<DefaultLogMessage Text="#user# has decided not to add a log message."/>
<CommitRequirements FailureMessage="Please add a commit message">
<CommitRequirement Description="Any Text" Regex="\w"/>
</CommitRequirements>
</ReproPathConfig>
<!--<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Change Request number. Please add [CR ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[c?r? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>-->
When executing the post-commit hook, the following info is printed to the log file:
[6/2/2008 9:02:26 PM] *************************
[6/2/2008 9:02:26 PM] Starting process for Revision 122-1 [X:/path/to/my/svn]
[6/2/2008 9:02:26 PM] Configuration file deserialized. Logging level set to: DEBUG
[6/2/2008 9:02:26 PM] SubversionNotify, Version=1.4.5.3, Culture=neutral, PublicKeyToken=null
[6/2/2008 9:02:26 PM] Processing type: pre-commit
[6/2/2008 9:02:26 PM] Commit Paths: /dir1/trunk/dir2/
[6/2/2008 9:02:26 PM] Controlled Paths List: /
[6/2/2008 9:02:26 PM] LockedPaths :: No check elements found.
[6/2/2008 9:02:26 PM] Passed Folder Name Exclusion test.
[6/2/2008 9:02:26 PM] Passed File Type Exclusion test.
[6/2/2008 9:02:26 PM] Checking for FileTypeTag Requirements complete. Not Required.
[6/2/2008 9:02:26 PM] Checking for LogMessageCheck Requirements. Configs to check: 0
[6/2/2008 9:02:26 PM] LogMessageCheck checking log message: Another test for SubversionNotify.
[6/2/2008 9:02:26 PM] LogMessageCheck file list: U dir1/trunk/dir2/filename.txt
[6/2/2008 9:02:26 PM] LogMessageCheck complete and not required.
[6/2/2008 9:02:26 PM] All Pre-commit checks passed.
[6/2/2008 9:02:27 PM] *************************
[6/2/2008 9:02:27 PM] Starting process for Revision 123 [X:/path/to/my/svn]
[6/2/2008 9:02:27 PM] Configuration file deserialized. Logging level set to: DEBUG
[6/2/2008 9:02:27 PM] SubversionNotify, Version=1.4.5.3, Culture=neutral, PublicKeyToken=null
[6/2/2008 9:02:27 PM] Processing type: post-commit
[6/2/2008 9:02:27 PM] InfoHeader :: Raw Header message -
firstname.lastname
2008-06-02 21:02:27 -0400 (Mon, 02 Jun 2008)
85
Another test for SubversionNotify.
[6/2/2008 9:02:27 PM] Getting e-mail address for firstname.lastname from mydomain.local
[6/2/2008 9:02:27 PM] Found e-mail address for firstname.lastname: Firstname.Lastname@mydomain.net
[6/2/2008 9:02:27 PM] Controlled Paths List: /
[6/2/2008 9:02:27 PM] HTML Message Generated
[6/2/2008 9:02:27 PM] Getting e-mail address for firstname.lastname from mydomain.local
[6/2/2008 9:02:27 PM] Found e-mail address for firstname.lastname: Firstname.Lastname@mydomain.net
[6/2/2008 9:02:27 PM] Generating e-mail message
[6/2/2008 9:02:27 PM] Controlled Paths List: /
[6/2/2008 9:02:27 PM]
Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/dir1/trunk/dir2
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents.
Also, be sure the ControlledPaths is set to a repro URL path and not a physical drive path.
To control your entire repository, use the setting: controlledPaths="/"
For further details, see the manual at http://mckechney.com/SubversionNotifyForWindows
[6/2/2008 9:02:27 PM] Finished e-mail processing.
[6/2/2008 9:02:27 PM] HTML file written to C:\Program Files\SubversionNotify\log\Revision 123.html
[6/2/2008 9:02:27 PM] Finished processing Revision 123
Needless to say, the email is never delivered due the error concerning ControlledPaths. Does anyone have any suggestions as to how I can remedy the problem?
So close, yet so far away!
Thanks in advance for any help that can be offered.
Brett
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Brett,
Was the problem with the "file:///" prefix to the drive letter setting in the "ControlledRepros" attribute value?
That was the only thing that I saw at first glance.
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, that seemed to be the hangup. It works out well though, since I intend to use SubversionNotify for all the repositories I am managing. I simply removed the attribute and all is well.
The other issue I was going to post about: some of the EMail identifier variants (e.g. EMailGroup) in the .cfg file I had were Email instead of EMail. So I fixed those ... now it seems the email is being sent to the SBS domain controller at my office, but the Exchange server is rejecting them. Until I am able to fix that problem, I believe its safe to say that all is well on the SubversionNotify side. BTW, the log files look really nice! Can't wait to see them over email ;-).
I don't have a copy of the log file here at home, but when I get to the office tomorrow I will post it to see if anyone is aware of a remedy, though I have a feeling there's a setting (or two) on the Exchange side I will have to fiddle with.
Thanks for the quick response!
Brett
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Below is a copy of my config file (personal info removed, of course).
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd" LoggingLevel="DEBUG">
<SVNConfig ExePath="C:\Program Files\Subversion\bin\svnlook.exe" />
<MailServer Name="mydomain.local" Username="" Password="" EMailSubjectTag="[svn]" ADGlobalCatalog="mydomain.local" FromAddress="svn-notify@mydomain.net" />
<ReproPathConfig ControlledPaths="/" ControlledRepros="file:///X:/path/to/my/svn" >
<MailTo EMailGroupName="group1" EMailType="HTML" EMailSuppressionChar="~" CustomSubjectFormat=" Revision #revision# Committed by #user# - Changes to #fileNames#"/>
<DefaultLogMessage Text="#user# has decided not to add a log message."/>
<CommitRequirements FailureMessage="Please add a commit message">
<CommitRequirement Description="Any Text" Regex="\w"/>
</CommitRequirements>
</ReproPathConfig>
<!--<PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Change Request number. Please add [CR ###] to the changed message.">
<PrePropChangeRequirement Description="Bug Number" Regex="\[c?r? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
</PrePropChangeRequirements>-->
<EmailGroup Name="group1">
<Email Address="user1@mydomain.local" DisplayName="user1"/>
<Email Address="user2@mydomain.local" DisplayName="user2"/>
<Email Address="user3@mydomain.local" DisplayName="user3"/>
</EmailGroup>
</subversionNotifyConfig>
When executing the post-commit hook, the following info is printed to the log file:
[6/2/2008 9:02:26 PM] *************************
[6/2/2008 9:02:26 PM] Starting process for Revision 122-1 [X:/path/to/my/svn]
[6/2/2008 9:02:26 PM] Configuration file deserialized. Logging level set to: DEBUG
[6/2/2008 9:02:26 PM] SubversionNotify, Version=1.4.5.3, Culture=neutral, PublicKeyToken=null
[6/2/2008 9:02:26 PM] Processing type: pre-commit
[6/2/2008 9:02:26 PM] Commit Paths: /dir1/trunk/dir2/
[6/2/2008 9:02:26 PM] Controlled Paths List: /
[6/2/2008 9:02:26 PM] LockedPaths :: No check elements found.
[6/2/2008 9:02:26 PM] Passed Folder Name Exclusion test.
[6/2/2008 9:02:26 PM] Passed File Type Exclusion test.
[6/2/2008 9:02:26 PM] Checking for FileTypeTag Requirements complete. Not Required.
[6/2/2008 9:02:26 PM] Checking for LogMessageCheck Requirements. Configs to check: 0
[6/2/2008 9:02:26 PM] LogMessageCheck checking log message: Another test for SubversionNotify.
[6/2/2008 9:02:26 PM] LogMessageCheck file list: U dir1/trunk/dir2/filename.txt
[6/2/2008 9:02:26 PM] LogMessageCheck complete and not required.
[6/2/2008 9:02:26 PM] All Pre-commit checks passed.
[6/2/2008 9:02:27 PM] *************************
[6/2/2008 9:02:27 PM] Starting process for Revision 123 [X:/path/to/my/svn]
[6/2/2008 9:02:27 PM] Configuration file deserialized. Logging level set to: DEBUG
[6/2/2008 9:02:27 PM] SubversionNotify, Version=1.4.5.3, Culture=neutral, PublicKeyToken=null
[6/2/2008 9:02:27 PM] Processing type: post-commit
[6/2/2008 9:02:27 PM] InfoHeader :: Raw Header message -
firstname.lastname
2008-06-02 21:02:27 -0400 (Mon, 02 Jun 2008)
85
Another test for SubversionNotify.
[6/2/2008 9:02:27 PM] Getting e-mail address for firstname.lastname from mydomain.local
[6/2/2008 9:02:27 PM] Found e-mail address for firstname.lastname: Firstname.Lastname@mydomain.net
[6/2/2008 9:02:27 PM] Controlled Paths List: /
[6/2/2008 9:02:27 PM] HTML Message Generated
[6/2/2008 9:02:27 PM] Getting e-mail address for firstname.lastname from mydomain.local
[6/2/2008 9:02:27 PM] Found e-mail address for firstname.lastname: Firstname.Lastname@mydomain.net
[6/2/2008 9:02:27 PM] Generating e-mail message
[6/2/2008 9:02:27 PM] Controlled Paths List: /
[6/2/2008 9:02:27 PM]
Unable to locate matching ReproPathConfig -> ControlledPaths / ControlledRepros properties. No e-mail will be sent.
File Paths committed are:
/dir1/trunk/dir2
To send e-mail for these path(s), you must have a ControlledPaths attribute set to the folder name (including the leading "/") or one of its parents.
Also, be sure the ControlledPaths is set to a repro URL path and not a physical drive path.
To control your entire repository, use the setting: controlledPaths="/"
For further details, see the manual at http://mckechney.com/SubversionNotifyForWindows
[6/2/2008 9:02:27 PM] Finished e-mail processing.
[6/2/2008 9:02:27 PM] HTML file written to C:\Program Files\SubversionNotify\log\Revision 123.html
[6/2/2008 9:02:27 PM] Finished processing Revision 123
Needless to say, the email is never delivered due the error concerning ControlledPaths. Does anyone have any suggestions as to how I can remedy the problem?
So close, yet so far away!
Thanks in advance for any help that can be offered.
Brett
I believe I have fixed this problem. No need to respond. However, I have a new a problem I will post a thread on.
Brett,
Was the problem with the "file:///" prefix to the drive letter setting in the "ControlledRepros" attribute value?
That was the only thing that I saw at first glance.
Thanks,
Mike
Mike--
Yes, that seemed to be the hangup. It works out well though, since I intend to use SubversionNotify for all the repositories I am managing. I simply removed the attribute and all is well.
The other issue I was going to post about: some of the EMail identifier variants (e.g. EMailGroup) in the .cfg file I had were Email instead of EMail. So I fixed those ... now it seems the email is being sent to the SBS domain controller at my office, but the Exchange server is rejecting them. Until I am able to fix that problem, I believe its safe to say that all is well on the SubversionNotify side. BTW, the log files look really nice! Can't wait to see them over email ;-).
I don't have a copy of the log file here at home, but when I get to the office tomorrow I will post it to see if anyone is aware of a remedy, though I have a feeling there's a setting (or two) on the Exchange side I will have to fiddle with.
Thanks for the quick response!
Brett