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.

1. The server determines which files are out of date based on the fact that it knows<br />

which versions are on your disk.<br />

2. The server then tells the client what it needs to do to update its workspace.<br />

3. The client downloads, moves, and deletes files as necessary and then notifies the<br />

server of which operations it accomplished.<br />

A get operation does not mark any files for editing and by default will not overwrite any<br />

files you have checked out for editing.<br />

Additional Resources<br />

• For more information about the get command, see “Get Command” at<br />

http://msdn2.microsoft.com/pt-br/library/fx7sdeyf(VS.80).aspx<br />

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

<strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> source control supports both shared and exclusive checkouts.<br />

With an exclusive checkout, nobody else can check out a file until you check it back into<br />

source control. This can lead to bottlenecks in the development process.<br />

By default, TFS also enables multiple users to check out the same source-controlled item<br />

concurrently. This is referred to as shared checkout. With this model, multiple developers<br />

can be working on copies of the same source file in their own workspaces. <strong>Team</strong><br />

<strong>Foundation</strong> <strong>Server</strong> knows which version is in a given developer’s workspace, and that<br />

developer must resolve conflicts prior to check-in.<br />

In most collaborative development environments, it is unlikely that that you will make a<br />

change in your workspace that conflicts <strong>with</strong> a pending change in another user’s<br />

workspace, or vice versa. A great majority of the workspace conflicts that do occur are<br />

resolved automatically by TFS. For conflicts that cannot be resolved automatically, you<br />

can use the resolve command to safely decide which change (yours or someone else’s)<br />

you want to keep.<br />

Additional Resources<br />

• For more information about locks, see “How to: Lock and Unlock Folders or Files” at<br />

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

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

Use the lock command to prevent other developers from checking out or checking in<br />

their changes until you unlock the file on which they are working. You should only lock a<br />

file if you are concerned that there will be a conflict resulting in a complicated manual<br />

merge operation. Because most conflicts can be resolved automatically, you should use<br />

the lock command sparingly, if at all.

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

Saved successfully!

Ooh no, something went wrong!