Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between the different types of Compare in TFS

When you right click on a file and select "Compare...", you get a few different options:

  1. Changeset
  2. Date
  3. Label
  4. Latest Version
  5. Workspace Version

The first 3 are pretty self explanatory. But what is the difference between the latest version and workspace version? 4 seems like you are comparing the code on your machine to the latest version in TFS 5 - shouldnt this be just like (4)? (I thought it might allow you to compare against multiple workspaces, but the dialog doesnt seem to have an option to select a different works space.)

like image 317
Raj Rao Avatar asked May 08 '09 17:05

Raj Rao


2 Answers

THe difference that I have found between Latest Version Workspace Version

Latest version - compares your current code file with the most current code file on TFS server. (This includes all the changes made by your fellow code monkeys and checked back in since you checked out the file). This form of comparison will show differences only if you have multiple checkouts enabled.

Workspace Version - compares your current code file against the code at the time that you had checked out the file. If you have multiple checkouts enabled and some of your fellow code monkeys have checked in changes - then, you use this option to see what you originally changed. You then will have to compare against the latest version to see if there will be any conflicts while you are checking in your code file.

like image 91
Raj Rao Avatar answered Sep 21 '22 18:09

Raj Rao


Latest Version refers to the last version that was committed to the TFS Source Control while Workspace version refers to the last checked-in version in your local workspace.

So basically the Workspace version Compare will will compare the file(s) you are comparing with your checked in files. While the Lastest Version Compare will compare it against files that may have been checked in by someone else on your team.

like image 26
Robert Kozak Avatar answered Sep 19 '22 18:09

Robert Kozak