|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Override a Check-In Policy
Team Foundation version control functionality includes customizable check-in policies. These check-in policies require the user to take actions when conducting a check in to version control; for example a user can be required to associate a work item with the changeset. For more information on check-ins, see How to: Check In Pending Changes. The following procedure describes how to override a check-in policy during a check-in process.
The following procedure assumes you will be checking in items that are in violation of a policy set against your current team project.
To perform these procedures, you must have the Check in permission set to Allow. For more information, see Team Foundation Server Permissions.
To override a check-in policy during check-in
Perform a check-in; for more information, see How to: Check In Pending Changes.
Click the Policy Warnings channel to view the policies in place for your team project. For example, the policy constraint "You must associate your changes with one or more work items" prevents users from submitting changes without having a specific bug or feature for which they are submitting a change.
Check-in the items that are in violation of a set policy. The Policy Failure dialog box appears.
Check Override policy failure and continue check-in.
In the Reason box, enter an explanation describing why you need to perform the check-in in violation of the set policy.