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.

$/MathProject/dev/calc/src/math.cs:<br />

opened for edit in Workspace21;contoso\james<br />

opened for rename in WS24;contoso\sally<br />

newer version exists in the repository<br />

Communicate regularly <strong>with</strong> other developers to indicate the nature of your changes to a<br />

particular file, to help avoid overlapping changes that would need to be manually merged.<br />

Coordination is a good way to make sure that two developers do not work on the same<br />

part of the code, but otherwise there is nothing wrong <strong>with</strong> having two or more people<br />

editing different parts of the same file.<br />

Additional Resources<br />

• For more information about viewing pending changes in your workspace, see “How<br />

to: View and Manage All Pending Changes in Your Workspace” at<br />

http://msdn2.microsoft.com/en-us/library/ms181400(VS.80).aspx<br />

• For more information about viewing pending changes in other workspaces, see “How<br />

to: View Pending Changes in Other Workspaces” at http://msdn2.microsoft.com/enus/library/ms181401(VS.80).aspx<br />

Checkout, Get, and Lock<br />

• How do I find out who was the last developer to modify a file?<br />

• How does the get command work?<br />

• What is the difference between shared and exclusive checkout?<br />

• When should I use the lock command?<br />

• What lock types does TFS support?<br />

How do I find out who was the last developer to modify a file?<br />

You can determine who last modified a file by examining the file’s history. To do so,<br />

right-click the file in Solution Explorer and then click View History. This displays the<br />

History window, which shows a list of modifications and the users who made those<br />

modifications. The last developer to modify a given file is shown at the top of the list.<br />

You can also view version history for a file from the command line by using the history<br />

command from the tf.exe command line tool.<br />

Additional Resources<br />

• For more information about file history, see “How to: View Historical Data” at<br />

http://msdn2.microsoft.com/en-us/library/ms181415(VS.80).aspx<br />

How does the get command work?<br />

Use the get command to synchronize the files on your machine <strong>with</strong> the files on the <strong>Team</strong><br />

<strong>Foundation</strong> <strong>Server</strong>. When you perform a get operation, <strong>Visual</strong> <strong>Studio</strong> performs the<br />

following steps. Note that the following sequence assumes that you have installed TFS<br />

proxy in order to boost performance:

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

Saved successfully!

Ooh no, something went wrong!