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.

• Use the tf changeset command.<br />

The following command displays details about changeset number 1234 by<br />

displaying the Details for Changeset dialog box:<br />

tf changeset 1234<br />

By using the dialog box, you can view the source files contained in the changeset,<br />

view the check-in comments and notes, view associated work items, and view any<br />

policy warnings that were generated when the changeset was checked into the<br />

server.<br />

To change details about a changeset<br />

• Use the tf changeset command to alter the comments and/or notes associated <strong>with</strong><br />

the changeset.<br />

The following command displays the Details for Changeset dialog box for<br />

changeset 1234 and updates the displayed comment field, allowing you to change<br />

the comment:<br />

tf changeset /comment:"This is a much better comment than the last one."<br />

1234<br />

The following command updates the code reviewer and security reviewer notes<br />

associated <strong>with</strong> changeset 1234:<br />

tf changeset /notes:"Code Reviewer"="C Davis";"Security Reviewer"="F<br />

Smith" 1234<br />

To roll back a changeset and remove the changes from the source control server, you use<br />

the <strong>Team</strong> <strong>Foundation</strong> Power Tool.<br />

To roll back a changeset using the <strong>Team</strong> <strong>Foundation</strong> Power Tool<br />

• Use the Tfpt rollback command.<br />

The following command rolls back change set number 1234.<br />

TFPT rollback /changeset:1234<br />

This command causes the Roll Back Changeset window to display. You can<br />

select the files contained <strong>with</strong>in the changeset to roll back.<br />

Additional Resources<br />

• For more information about the tf changeset command, see “Changeset Command”<br />

at http://msdn2.microsoft.com/en-us/library/w51xa47k(VS.80).aspx

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

Saved successfully!

Ooh no, something went wrong!