DCSIMG
How “Get Latest Version” Really Works? TFS Source Control - Eran Ruso
Sign in | Join | Help

How “Get Latest Version” Really Works? TFS Source Control

פורסם בתאריך Jul 04 2010, 03:39 PM על ידי Eran Ruso | ישנם 4 תגובות

Many people using the Source Control of the Team System don’t really understand how do Get Latest Version works.

Customers calls me in the middle of the night telling me that they have lost files and lost changes, I ask them what they did, they tell me: “I did Get Latest Version and I don’t see the files or the changes”.

Because that I am tired of getting to customers in the middle of the night for false alarms I decided to write this post explaining how does it work.

Lets start with that the Get Latest Version is not overwriting local changes, so if you have deleted a file than the system sees it as an intention of making a change with the file, at that case deleting the file from the project. So at that case when doing Get Latest Version you will not get the deleted file.

Get Latest Version works in a check list method, means that when it gets a file from the server to your local file system it writes down the file and its version, it will not get that file again until the file version will be changed on the server.

In case you made local changes and changes have been made on the server the Get Latest Version will trigger the merge window in order to merge your local changes with the server changes.

Here are some examples:

Scenario 1:

You trigger a Get Latest Version and get all the files from the server, one of the files is test.txt and its version on the server is V5.
You check out the test.txt, open it and add your name to it.
You save the file but you don’t check in the file.
You trigger the Get Latest Version once again.
A check is being made in the check list and the source control finds that the server has V5 for test.txt and on the last Get Latest Version you got V5 so nothing happens to this file.
You check your local changes and you can still see them.

Scenario 2:

You trigger a Get Latest Version and get all the files from the server, one of the files is test.txt and its version on the server is V5.
You delete the file.
you don’t check in the deletion.
You trigger the Get Latest Version once again.
A check is being made in the check list and the source control finds that the server has V5 for Test.txt and on the last Get Latest Version you got V5 so nothing happens to this file.
You check your local file system and you find that the file is missing.

Scenario 3:

You trigger a Get Latest Version and get all the files from the server, one of the files is test.txt and its version on the server is V5.
You check out the test.txt, open it and add your name to it.
You save the file but you don’t check in the file.
You trigger the Get Latest Version once again.
A check is being made in the check list and the source control finds that the server has V6 for test.txt and on the last Get Latest Version you got V5.
The source control also see that your local version contains changes, so it triggers the merge tool.

So we can see the most common scenarios that can happen with the Get Latest Version, I hope that now its mechanism is clear and there will be less night work for me ;-)

Have Fun!!!

רשימת תגובות

# July 5, 2010 – Links and Quick Hits | Trent Nix – TFS and Application Lifecycle Management

פורסם בתאריך Monday, July 05, 2010 6:25 PM על ידי July 5, 2010 – Links and Quick Hits | Trent Nix – TFS and Application Lifecycle Management  

Pingback from  July 5, 2010 – Links and Quick Hits | Trent Nix – TFS and Application Lifecycle Management

# July 5, 2010 ??? Links and Quick Hits | LearnTFS

פורסם בתאריך Thursday, November 11, 2010 6:59 AM על ידי July 5, 2010 ??? Links and Quick Hits | LearnTFS  

Pingback from  July 5, 2010 ??? Links and Quick Hits | LearnTFS

# January 1, 2011 – TFS Links and Quick Hits | Learn TFS

פורסם בתאריך Saturday, January 01, 2011 3:25 PM על ידי January 1, 2011 – TFS Links and Quick Hits | Learn TFS  

Pingback from  January 1, 2011 – TFS Links and Quick Hits | Learn TFS

# re: How “Get Latest Version” Really Works? TFS Source Control

פורסם בתאריך Monday, February 07, 2011 9:03 PM על ידי Richard Morrison  

This is all good and well, but I'm seeing TFS do a strange operation during get latest version.

I see a dialog that says my actions have resulted in the solution file being checked out when I'm only getting latest version.

After the get operation completes I have three or more additional files in the pending changes list: the solution and vssscc files are checked out for edit, and one or more files are checked out for deletion.

All I did was request latest. Perhaps you can explain why Get Latest is acting in this bizarre manner?

שלח תגובה

(שדה חובה) 
(שדה חובה) 
(אופציונלי)
(שדה חובה) 

Enter the numbers above: