i have pointed all of the .bat files to point at the correct directory. However, I am really having a hard time with the rest.
I am using a MSOffice Exchange server through my work, so I am not sure how to set that part up, but I don't believe that, this is the problem. Here is the script as I have it saved.
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="Please add a commit message">
<CommitRequirement Description="Any Text" Regex="\w"/>
<!--<FolderNameExclusion FolderName="Process" FolderNameRegex="\w" FailureMessage="Failed on AddDelete" ControlledActionType="AddDelete"/> -->
<FileTypeExclusion FileNameRegex="\w" FailureMessage="Failed on AddDelete file type exclusion" ControlledActionType="AddDelete"/>
<FileTypeTagCheck FileExtension=".txt" FailureMessage="Failed on .txt AddDelete tag regex" ControlledActionType="AddDelete" Regex="\[\]"/>
</CommitRequirements>
<CommitterExclusions>
<CommitterExclude SvnID="mmckechn" CommitterExclusionType="ProcessExecution"/>
</CommitterExclusions>
</ReproPathConfig>
<!--<LockedPaths>
</LockedPaths>-->
<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>
</subversionNotifyConfig>
the <FileTypeTagCheck is showing as being underlined in blue, right from the source file.
All I really need to be able to do is to make sure that .obj files are not allowed in the precommit part.
I am not sure what is causing my problem.....
this is the error i get from the log file
[5/14/2008 2:45:48 PM] *************************
[5/14/2008 2:45:48 PM] Staring process for Revision 8-1 [C:/svnrepos]
[5/14/2008 2:45:48 PM] Configuration file deserialized
[5/14/2008 2:45:48 PM] Commit Paths: /GUY/GUY/bin/
[5/14/2008 2:45:48 PM] System.NullReferenceException: Object reference not set to an instance of an object.
at SubversionNotify.Program.PreCommitLockedPathCheck(HTMLProcessor proc, subversionNotifyConfig cfg, List`1 dirsChanged)
at SubversionNotify.Program.PreCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName)
at SubversionNotify.Program..ctor(String repository, String revision, ProcessType prePost)
at SubversionNotify.Program.Main(String[] args)
[5/14/2008 2:45:48 PM] C:\svnrepos\hooks\SubversionNotify\SubversionNotify.log
Subversion Notify error.
Please have your administrator check the log for details on how to correct the issue
[5/14/2008 2:47:37 PM] *************************
[5/14/2008 2:47:37 PM] Staring process for Revision 8-1 [C:/svnrepos]
[5/14/2008 2:47:38 PM] Configuration file deserialized
[5/14/2008 2:47:38 PM] Commit Paths: //
[5/14/2008 2:47:38 PM] System.NullReferenceException: Object reference not set to an instance of an object.
at SubversionNotify.Program.PreCommitLockedPathCheck(HTMLProcessor proc, subversionNotifyConfig cfg, List`1 dirsChanged)
at SubversionNotify.Program.PreCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName)
at SubversionNotify.Program..ctor(String repository, String revision, ProcessType prePost)
at SubversionNotify.Program.Main(String[] args)
[5/14/2008 2:47:38 PM] C:\svnrepos\hooks\SubversionNotify\SubversionNotify.log
Subversion Notify error.
Please have your administrator check the log for details on how to correct the issue
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, I am trying to implement this in a location that is using a Microsoft Exchange Server for mail. How do I go about getting the smtp, etc. I do not believe that those are given out.
Will I have to set up a seperate mail server??
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Steve,
I just posted a new version release that includes several enhancement and fixes, including the one you are experiencing here.
Try installing this new version and that should get you going.
For the SMTP server, if you just install the SMTP service on the same machine you run Subversion, that should automatically connect via relay to the Exchange Server to get the e-mails sent. Depending on how "locked down" you have your Exchange install, you may need to add the name of the SMTP server to the "allow relay" setting in exchange (your admin should be able to get that for you).
If you have any other issues with the tool, please don't hesitate to ask!
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have pointed all of the .bat files to point at the correct directory. However, I am really having a hard time with the rest.
I am using a MSOffice Exchange server through my work, so I am not sure how to set that part up, but I don't believe that, this is the problem. Here is the script as I have it saved.
<?xml version="1.0" standalone="yes"?>
<subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
<SVNConfig ExePath="c:\program files\subversion\bin\svnlook.exe" />
<MailServer Name="smtp.paychex.com"
Username=""
Password=""
/>
<ReproPathConfig controlledPaths="/">
<MailTo EMailAddress="mmckechney@paychex.com" EMailType="HTML" EMailSuppressionChar="~"/>
<Execute Application="notepad.exe"/>
<DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
<CommitRequirements FailureMessage="Please add a commit message">
<CommitRequirement Description="Any Text" Regex="\w"/>
<!--<FolderNameExclusion FolderName="Process" FolderNameRegex="\w" FailureMessage="Failed on AddDelete" ControlledActionType="AddDelete"/> -->
<FileTypeExclusion FileNameRegex="\w" FailureMessage="Failed on AddDelete file type exclusion" ControlledActionType="AddDelete"/>
<FileTypeTagCheck FileExtension=".txt" FailureMessage="Failed on .txt AddDelete tag regex" ControlledActionType="AddDelete" Regex="\[\]"/>
</CommitRequirements>
<CommitterExclusions>
<CommitterExclude SvnID="mmckechn" CommitterExclusionType="ProcessExecution"/>
</CommitterExclusions>
</ReproPathConfig>
<!--<LockedPaths>
</LockedPaths>-->
<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>
</subversionNotifyConfig>
the <FileTypeTagCheck is showing as being underlined in blue, right from the source file.
All I really need to be able to do is to make sure that .obj files are not allowed in the precommit part.
I am not sure what is causing my problem.....
this is the error i get from the log file
[5/14/2008 2:45:48 PM] *************************
[5/14/2008 2:45:48 PM] Staring process for Revision 8-1 [C:/svnrepos]
[5/14/2008 2:45:48 PM] Configuration file deserialized
[5/14/2008 2:45:48 PM] Commit Paths: /GUY/GUY/bin/
[5/14/2008 2:45:48 PM] System.NullReferenceException: Object reference not set to an instance of an object.
at SubversionNotify.Program.PreCommitLockedPathCheck(HTMLProcessor proc, subversionNotifyConfig cfg, List`1 dirsChanged)
at SubversionNotify.Program.PreCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName)
at SubversionNotify.Program..ctor(String repository, String revision, ProcessType prePost)
at SubversionNotify.Program.Main(String[] args)
[5/14/2008 2:45:48 PM] C:\svnrepos\hooks\SubversionNotify\SubversionNotify.log
Subversion Notify error.
Please have your administrator check the log for details on how to correct the issue
[5/14/2008 2:47:37 PM] *************************
[5/14/2008 2:47:37 PM] Staring process for Revision 8-1 [C:/svnrepos]
[5/14/2008 2:47:38 PM] Configuration file deserialized
[5/14/2008 2:47:38 PM] Commit Paths: //
[5/14/2008 2:47:38 PM] System.NullReferenceException: Object reference not set to an instance of an object.
at SubversionNotify.Program.PreCommitLockedPathCheck(HTMLProcessor proc, subversionNotifyConfig cfg, List`1 dirsChanged)
at SubversionNotify.Program.PreCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName)
at SubversionNotify.Program..ctor(String repository, String revision, ProcessType prePost)
at SubversionNotify.Program.Main(String[] args)
[5/14/2008 2:47:38 PM] C:\svnrepos\hooks\SubversionNotify\SubversionNotify.log
Subversion Notify error.
Please have your administrator check the log for details on how to correct the issue
Also, I am trying to implement this in a location that is using a Microsoft Exchange Server for mail. How do I go about getting the smtp, etc. I do not believe that those are given out.
Will I have to set up a seperate mail server??
Thanks,
Steve,
I just posted a new version release that includes several enhancement and fixes, including the one you are experiencing here.
Try installing this new version and that should get you going.
For the SMTP server, if you just install the SMTP service on the same machine you run Subversion, that should automatically connect via relay to the Exchange Server to get the e-mails sent. Depending on how "locked down" you have your Exchange install, you may need to add the name of the SMTP server to the "allow relay" setting in exchange (your admin should be able to get that for you).
If you have any other issues with the tool, please don't hesitate to ask!
Thanks,
Mike
It is working just fine now :)
thanks.