Menu

Pre-commit failure

Help
StreakyCDC
2008-08-06
2013-05-01
  • StreakyCDC

    StreakyCDC - 2008-08-06

    I am getting the following pre-commit failure:

    "File name already exists (case-insensitive match)"

    I have added a file /test_folder/folderx/Readme.txt and comitted the change. I then add /test_folder/Readme.txt and try and commit the change but get the pre-commit failure. I cannot see any reason as to why I should get this failure.  There are no other files in this directory path.

    Any help would be appreciated.

    Below is my config
    ------------
    <?xml version="1.0" standalone="yes"?>
    <subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd" LoggingLevel="DEBUG" MaximumEMailSizeInMb="5" MaximumEmailSubjectChars="255">
        <!-- Basic configuration of where to locate the SVN executables -->
        <SVNConfig ExePath="C:\Program Files\CollabNet Subversion Server\svnlook.exe" />
       
        <!-- Configure your mail server. Needed for e-mail notifications -->
        <MailServer Name="xxxx.xxxx.xxx" FromAddress="xxx@xxxx.xxx"/>

        <!-- Register repositories and repo paths to be controlled in one of these sections. -->
        <RepoPathConfig ControlledPaths="/">

            <!-- You can send one or more e-mail messages to a single recipient or a group of recipients-->
            <MailTo EMailGroupName="Developers" EMailType="HTML" EMailSuppressionChar="~" CustomSubjectFormat="#user# - #filenames#"/>
            <MailTo EMailGroupName="Managers" EMailAddress="extra@mydomain.com" EMailType="HTML" />
            <MailTo EMailGroupName="Admin" EMailType="HTML" CustomSubjectFormat="Admin - #user# - #fileNames#"/>

            <!-- In case you want to, you can add a default log message that will get added if no other message is included by the user -->
            <DefaultLogMessage Text="#user# has decided not to add a log message."/>

            <!-- <execute application="pathtwo.bat" commandline="#revision# #name# #controlledpaths#"/> -->
        </RepoPathConfig>

        <!-- Implementing the pre-prop-change hook, this enforces that the changed message meets you standards -->
        <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>

        <PreCommitFailureMessage>
            <MailTo EMailGroupName="Admin" CustomSubjectFormat="[SVN Precommit Failure] #user# :: #commitMessage#" />
        </PreCommitFailureMessage>
       
        <!-- One or more of these, you can set up re-usable distribution lists.
                The Name attribute value is what you use as the EMailGroup value up in the MailTo element-->
        <EMailGroup Name="Developers">
            <!--<EMail Address="xxxxx@xxxx.xxxx" />-->
        </EMailGroup>
        <EMailGroup Name="Managers">
        </EMailGroup>
        <EMailGroup Name="Admin">
            <EMail Address="xxxxxx@xxx.xxx" />
        </EMailGroup>

    </subversionNotifyConfig>
    ----------------

    and the log of the problem

    -------------------

    [06/08/2008 08:43:27]        *************************
    [06/08/2008 08:43:27]        Starting process for Revision 44-1n [C:\Repositories\admin_repo]
    [06/08/2008 08:43:28]        Configuration file deserialized. Logging level set to: DEBUG
    [06/08/2008 08:43:28]        SubversionNotify, Version=2.0.6.0, Culture=neutral, PublicKeyToken=null
    [06/08/2008 08:43:28]        No ItemTrackerRegistration entries found.
    [06/08/2008 08:43:28]        Processing type: pre-commit
    [06/08/2008 08:43:28]        Commit Paths: //
    /test_folder/
    /test_folder/folderx/
    [06/08/2008 08:43:28]        Controlled Paths List:  /
    [06/08/2008 08:43:28]        Found Applicable RepoConfig: '/' with //
    [06/08/2008 08:43:28]        Found Applicable RepoConfig: '/' with /test_folder/
    [06/08/2008 08:43:28]        Found Applicable RepoConfig: '/' with /test_folder/folderx/
    [06/08/2008 08:43:28]        SetRepoPathPrecidence :: Incomming configs = 1 ; Returning configs = 1
    [06/08/2008 08:43:28]        SelectApplicableReproConfigs :: Returning 1 RepoPathConfig objects
    [06/08/2008 08:43:28]        LockedPaths :: No check elements found.
    [06/08/2008 08:43:28]        PreCommitProcessing :: Generating SvnLook directory file listing
    [06/08/2008 08:43:28]        SVN Error -- Unable to access repository at C:\Repositories\admin_repo ; test_folder/
    svnlook: File not found: revision 44, path '/test_folder'

    [06/08/2008 08:43:28]        SVN Error -- Unable to access repository at C:\Repositories\admin_repo ; test_folder/folderx/
    svnlook: File not found: revision 44, path '/test_folder/folderx'

    [06/08/2008 08:43:28]        PreCommitProcessing :: Checking for case-insensitive file match
    [06/08/2008 08:43:28]        Passed Folder Name Exclusion test.
    [06/08/2008 08:43:28]        Passed File Type Exclusion test.
    [06/08/2008 08:43:28]        Checking for FileTypeTag Requirements complete. Not Required.
    [06/08/2008 08:43:28]        Checking for LogMessageCheck Requirements. Configs to check: 1
    [06/08/2008 08:43:28]        LogMessageCheck checking log message: Reason for change: Added folders and a test Readme.txt

    Description of change:

    [06/08/2008 08:43:28]        LogMessageCheck file list: A   test_folder/
    ; A   test_folder/folderx/
    ; A   test_folder/folderx/Readme.txt

    [06/08/2008 08:43:28]        LogMessageCheck complete and not required.
    [06/08/2008 08:43:28]        GleenItemNumbers :: Returning 0 ItemTrackingSet objects
    [06/08/2008 08:43:28]        All Pre-commit checks passed.
    [06/08/2008 08:43:29]        *************************
    [06/08/2008 08:43:29]        Starting process for Revision 45 [C:\Repositories\admin_repo]
    [06/08/2008 08:43:30]        Configuration file deserialized. Logging level set to: DEBUG
    [06/08/2008 08:43:30]        SubversionNotify, Version=2.0.6.0, Culture=neutral, PublicKeyToken=null
    [06/08/2008 08:43:30]        No ItemTrackerRegistration entries found.
    [06/08/2008 08:43:30]        Processing type: post-commit
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: ChangedFiles list: A   test_folder/
    A   test_folder/folderx/
    A   test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: Modified file name: test_folder/
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: Modified file name: test_folder/folderx/
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: Modified file name: test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        Controlled Paths List:  /
    [06/08/2008 08:43:30]        Found Applicable RepoConfig: '/' with /test_folder/
    [06/08/2008 08:43:30]        Found Applicable RepoConfig: '/' with /test_folder/folderx/
    [06/08/2008 08:43:30]        Found Applicable RepoConfig: '/' with /test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        SetRepoPathPrecidence :: Incomming configs = 1 ; Returning configs = 1
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: Returning 1 RepoPathConfig objects
    [06/08/2008 08:43:30]        GleenItemNumbers :: Returning 0 ItemTrackingSet objects
    [06/08/2008 08:43:30]        InfoHeader :: Raw Header message -
    robl0429
    2008-08-06 08:43:29 +0100 (Wed, 06 Aug 2008)
    80
    Reason for change: Added folders and a test Readme.txt

    Description of change:
    [06/08/2008 08:43:30]        Controlled Paths List:  /
    [06/08/2008 08:43:30]        Found Applicable RepoConfig: '/' with /test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        SetRepoPathPrecidence :: Incomming configs = 1 ; Returning configs = 1
    [06/08/2008 08:43:30]        SelectApplicableReproConfigs :: Returning 1 RepoPathConfig objects
    [06/08/2008 08:43:30]        HTML file written to C:\SubversionNotify\log\Revision 45.html
    [06/08/2008 08:43:30]        HTML Message Generated
    [06/08/2008 08:43:30]        Generating e-mail message
    [06/08/2008 08:43:30]        EMail Addresses found:
    [06/08/2008 08:43:30]        Unable to locate specified EMailGroup name: Developers
    [06/08/2008 08:43:30]        EMail Addresses captured:
    [06/08/2008 08:43:30]        Custom Text Formatting :: Format String Found: #user# - #filenames#
    [06/08/2008 08:43:30]        Custom Text Formatting :: #revision# value: 45
    [06/08/2008 08:43:30]        Custom Text Formatting :: #commitMessage# value: Reason for change: Added folders and a test Readme.txt  Description of change:
    [06/08/2008 08:43:30]        Custom Text Formatting :: #user# value: xxxxx
    [06/08/2008 08:43:30]        Custom Text Formatting :: #repoPhysicalPath# value: C:\Repositories\admin_repo
    [06/08/2008 08:43:30]        Custom Text Formatting :: #date# value: 2008-08-06 08:43:29 +0100 (Wed, 06 Aug 2008)
    [06/08/2008 08:43:30]        Custom Text Formatting :: #controlledpaths# value: /
    [06/08/2008 08:43:30]        Custom Text Formatting :: Result: xxxx- #filenames#
    [06/08/2008 08:43:30]        Custom Text Formatting :: FileListing value: test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        Custom Text Formatting :: #filesWithPaths# value: test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        Custom Text Formatting :: Result: xxxx- #filenames#
    [06/08/2008 08:43:30]        Unable to send mail:
    System.InvalidOperationException: A recipient must be specified.
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
    [06/08/2008 08:43:30]        EMail Addresses found: extra@mydomain.com
    [06/08/2008 08:43:30]        Unable to locate specified EMailGroup name: Managers
    [06/08/2008 08:43:30]        EMail Addresses captured: "extra@mydomain.com" <extra@mydomain.com>
    [06/08/2008 08:43:30]        Unable to send mail:
    System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for extra@mydomain.com
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
    [06/08/2008 08:43:30]        EMail Addresses found:
    [06/08/2008 08:43:30]        EMailGroup found:Admin. Addresses added
    [06/08/2008 08:43:30]        EMail Addresses captured: xxxx@xxxx.xxxx
    [06/08/2008 08:43:30]        Custom Text Formatting :: Format String Found: Admin - #user# - #fileNames#
    [06/08/2008 08:43:30]        Custom Text Formatting :: #revision# value: 45
    [06/08/2008 08:43:30]        Custom Text Formatting :: #commitMessage# value: Reason for change: Added folders and a test Readme.txt  Description of change:
    [06/08/2008 08:43:30]        Custom Text Formatting :: #user# value: xxxxx
    [06/08/2008 08:43:30]        Custom Text Formatting :: #repoPhysicalPath# value: C:\Repositories\admin_repo
    [06/08/2008 08:43:30]        Custom Text Formatting :: #date# value: 2008-08-06 08:43:29 +0100 (Wed, 06 Aug 2008)
    [06/08/2008 08:43:30]        Custom Text Formatting :: #controlledpaths# value: /
    [06/08/2008 08:43:30]        Custom Text Formatting :: Result: Admin - xxxx- #fileNames#
    [06/08/2008 08:43:30]        Custom Text Formatting :: FileListing value: test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        Custom Text Formatting :: #fileNames# value: Readme.txt
    [06/08/2008 08:43:30]        Custom Text Formatting :: #filesWithPaths# value: test_folder/folderx/Readme.txt
    [06/08/2008 08:43:30]        Custom Text Formatting :: Result: Admin - xxxxx- Readme.txt
    [06/08/2008 08:43:30]        Sent Revision 45 e-mail to: mark.bacon@cobhamdc.com
    [06/08/2008 08:43:30]        Finished e-mail processing.
    [06/08/2008 08:43:30]        Finished processing Revision 45
    [06/08/2008 08:44:00]        *************************
    [06/08/2008 08:44:00]        Starting process for Revision 45-1o [C:\Repositories\admin_repo]
    [06/08/2008 08:44:01]        Configuration file deserialized. Logging level set to: DEBUG
    [06/08/2008 08:44:01]        SubversionNotify, Version=2.0.6.0, Culture=neutral, PublicKeyToken=null
    [06/08/2008 08:44:01]        No ItemTrackerRegistration entries found.
    [06/08/2008 08:44:01]        Processing type: pre-commit
    [06/08/2008 08:44:01]        Commit Paths: /test_folder/
    [06/08/2008 08:44:01]        Controlled Paths List:  /
    [06/08/2008 08:44:01]        Found Applicable RepoConfig: '/' with /test_folder/
    [06/08/2008 08:44:01]        SetRepoPathPrecidence :: Incomming configs = 1 ; Returning configs = 1
    [06/08/2008 08:44:01]        SelectApplicableReproConfigs :: Returning 1 RepoPathConfig objects
    [06/08/2008 08:44:01]        LockedPaths :: No check elements found.
    [06/08/2008 08:44:01]        PreCommitProcessing :: Generating SvnLook directory file listing
    [06/08/2008 08:44:01]        PreCommitProcessing :: Checking for case-insensitive file match
    [06/08/2008 08:44:01]        Passed Folder Name Exclusion test.
    [06/08/2008 08:44:01]        Passed File Type Exclusion test.
    [06/08/2008 08:44:01]        Checking for FileTypeTag Requirements complete. Not Required.
    [06/08/2008 08:44:01]        Checking for LogMessageCheck Requirements. Configs to check: 1
    [06/08/2008 08:44:01]        LogMessageCheck checking log message: Reason for change:Add a Readme.txt

    Description of change:

    [06/08/2008 08:44:01]        LogMessageCheck file list: A   test_folder/Readme.txt

    [06/08/2008 08:44:01]        LogMessageCheck complete and not required.
    [06/08/2008 08:44:01]        GleenItemNumbers :: Returning 0 ItemTrackingSet objects
    [06/08/2008 08:44:01]        Pre-commit failure
    File name already exists (case-insensitive match).
    File in repo:                'readme.txt'
    File trying to commit: 'Readme.txt'

    [06/08/2008 08:44:01]        Custom Text Formatting :: Format String Found: [SVN Precommit Failure] #user# :: #commitMessage#
    [06/08/2008 08:44:01]        Custom Text Formatting :: #revision# value: 45-1o
    [06/08/2008 08:44:01]        Custom Text Formatting :: #commitMessage# value: Reason for change:Add a Readme.txt

    Description of change:

    [06/08/2008 08:44:01]        Custom Text Formatting :: #user# value: robl0429
    [06/08/2008 08:44:01]        Custom Text Formatting :: #repoPhysicalPath# value: C:\Repositories\admin_repo
    [06/08/2008 08:44:01]        Custom Text Formatting :: #date# value:
    [06/08/2008 08:44:01]        Custom Text Formatting :: #controlledpaths# value:
    [06/08/2008 08:44:01]        Custom Text Formatting :: Result: [SVN Precommit Failure] robl0429 :: Reason for change:Add a Readme.txt  Description of change:
    [06/08/2008 08:44:01]        EMail Addresses found:
    [06/08/2008 08:44:01]        EMailGroup found:Admin. Addresses added
    [06/08/2008 08:44:01]        EMail Addresses captured: xxxxxx@xxxx.xxxx
    [06/08/2008 08:44:01]        Pre-Commit details:
    User ID =    robl0429
    Revision =    45-1o
    Repo =    C:\Repositories\admin_repo
    Message =    Reason for change:Add a Readme.txt

    Description of change:

     

Log in to post a comment.