26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

What is a changeset?<br />

A changeset represents the set of changes associated <strong>with</strong> a check-in. All changes in the<br />

changeset are applied to TFS in an atomic fashion when you check-in the changeset.<br />

Changesets are identified by unique, sequentially increasing numbers.<br />

You can retrieve a changeset at a later time to view details of what files changed, checkin<br />

comments, and associated work items. You can also retrieve the file versions<br />

associated <strong>with</strong> the changeset if you need to review, test, or build <strong>with</strong> the old change.<br />

Additional Resources<br />

• For more information about retrieving changesets, see “How to: Retrieve Old<br />

Versions of Files from Changesets” at http://msdn2.microsoft.com/enus/library/ms181416(VS.80).aspx<br />

What is a check-in policy?<br />

You can use check-in policies to enforce coding standards upon check-in. For example,<br />

you can require that each developer runs static code analysis on the code before it is<br />

checked in,.<br />

The following check-in policies are available by default <strong>with</strong> VSTS:<br />

• Code Analysis – Requires that code analysis be run before check-in.<br />

• Test Policy – Requires that check-in tests be completed before check-in.<br />

• Work Items – Requires that one or more work items be associated <strong>with</strong> the check-in.<br />

You can create a custom check-in policy to perform checks that are not available by<br />

default. For example, you can disallow code patterns such as banned API calls, force the<br />

use of check-in comments, or check against your team’s style guidelines.<br />

Additional Resources<br />

• To learn how to customize a check-in policy, see “Walkthrough: Customizing Checkin<br />

Policies and Notes” at http://msdn2.microsoft.com/enus/library/ms181281(VS.80).aspx<br />

• To see sample code that will disallow selected patterns on check-in, see “Checkin<br />

Policy to Disallow Certain Patterns” at<br />

http://blogs.msdn.com/jmanning/archive/2006/02/02/523125.aspx<br />

• To see sample code that will enforce comments on check-in, see “Sample Checkin<br />

Policy: Make Sure the Comment Isn’t Empty” at<br />

http://blogs.msdn.com/jmanning/archive/2006/01/21/515858.aspx<br />

• To learn how to register a new check-in policy, see “I’ve Made a New Check-In<br />

Policy! How Do I Add It?” at<br />

http://blogs.msdn.com/jmanning/archive/2006/02/07/526778.aspx

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!