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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

made in a specified changeset. Not all changes can be rolled back, but the rollback<br />

works for most scenarios.<br />

• Work offline – The TFPT online tool allows you to work <strong>with</strong>out a server connection<br />

for a period of time by providing functionality that informs the server about changes<br />

you make to your local workspace.<br />

• Get a changeset – The TFPT GetCS command enables you to get all the items listed<br />

in a changeset based on the given changeset version. This is useful if a colleague has<br />

checked in a change that you need to have in your workspace, but you cannot update<br />

your entire workspace to the latest version.<br />

• Remove pending edits – The TFPT UU (Undo Unchanged) command removes<br />

pending edits from files that have not actually been edited. This is useful in a scenario<br />

where you check out a large number of files for edit, but only actually make changes<br />

to a small number of the files. You can back out your edits on the unchanged files by<br />

running the TFPT UU command, which compares hashes of the files in the local<br />

workspace to hashes on the server in order to determine whether the file has actually<br />

been edited.<br />

You run each of these commands from the command line by using Tfpt.exe.<br />

Additional Resources<br />

• To download TFPT, go to<br />

http://www.microsoft.com/downloads/details.aspx?FamilyID=7324c3db-658d-441b-<br />

8522-689c557d0a79&DisplayLang=en<br />

• To view a forum discussing TFPT, go to<br />

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=930&SiteID=1<br />

What are the most common version control extensibility scenarios?<br />

The most common version control extensibility scenario is customizing a check-in policy<br />

in order to enforce standards at check-in time. To create custom policy plug-ins that<br />

appear in the Add Checkin Policy dialog box, use the extensibility features provided in<br />

the <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> Software <strong>Development</strong> Kit (SDK). You can<br />

download the TFS SDK from http://go.microsoft.com/fwlink/?linkid=68586<br />

Although not as common, it is also possible to write an integration layer to allow a non–<br />

<strong>Visual</strong> <strong>Studio</strong> 2005 client to work <strong>with</strong> <strong>Team</strong> <strong>Foundation</strong> Version Control.<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

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

Saved successfully!

Ooh no, something went wrong!