<FailInstruction> element

The <FailInstruction> element writes a message specified with the Message attribute to the error output and notifies RepoCop to return an exit code other than 0 (thus notifying the caller - if used as pre-commit hook - to fail the commit). If used during a pre-commit hook this text will be shown to the commiting user thus presenting information about why the commit failed.


Attribute name Status Description
Message mandatory A text that will be send to error output and (if supported by the repository) shown to the commiting user. Use this message to state a reason why the commit failed.


  <FailInstruction Message="The path /branches/version_1.1 is locked and may no longer be modified.">
    <ChangedPathCondition ChangedPathRegExPattern=".*/branches/version_1\.1.*" />

Last edited Nov 13, 2010 at 12:14 PM by markushastreiter, version 1


No comments yet.