Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between "Compare with Workspace version" and "Compare with Latest version"?

I am using Visual Studio 2012 with TFS. Whenever I want to compare my checked out files, I have two options to choose from:

  1. Compare with workspace version
  2. Compare with latest version

screenshot

What is the difference ?

like image 396
Bilal Fazlani Avatar asked Nov 26 '13 09:11

Bilal Fazlani


1 Answers

Compare with Latest version seems clear. It compares files against the latest version in TFS. So you'll get all the differences between the very latest version checked into source control and whichever folder you're comparing against.

Compare with Workspace version might be confusing, but is actually pretty simple. TFS keeps track of the version of the file which you've retrieved into your workspace. This is usually the latest version, or pretty close to that, but that doesn't have to be the case.

When using the Get Specific Version option you can retrieve any version of a file to your local workspace. You can even retrieve files from different versions into your workspace. When you select this option, a comparison will be done against the version that is currently in your workspace.

Compare screen

like image 123
jessehouwing Avatar answered Oct 13 '22 18:10

jessehouwing