Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check files against TFS without getting latest?

While reconciling an old solution I have been getting historical file versions from TFS without checking out.
That is, for a bunch of files in my solution I did "Show History" > "Get This Version"

Now I have all the mix-and-match of historical versions I want, but I did not keep track of which files (and which versions of the files) I got which were not latest.

Is there a way I can get a list of "not latest" files in my solution? That is, I want the output window's list of replaced files if I were to execute a "get latest" but I do not actually want to get them.

like image 381
Matthew Avatar asked May 06 '11 15:05

Matthew


People also ask

How do I check a TFS file?

Right-Click In the File List, right-click the file you want to check in and select Source Control > Check In (for selected files) or Source Control > Project > Check In All (for all files in the project).

How do I see all checked out files in TFS?

Right-click on the highest level that you want to search for checked out files (like the root of the project collection) and click the Find menu –> Find by Status. Recursive, and click Status. Click Find. This will give you a list of all the files that are checked out.


2 Answers

Right click on the top level folder in Source Control Explorer, select "Compare". Top option should be the server path e.g. $/TeamProject/Myfolder with the latest version selected in the dropdown. The bottom option should be c:\MyWorkspace\TeamProject\Myfolder this will do a compare with the latest version held in TFS with the files you have locally. Diff Screen 1Diff Screen 2

Or you could do the same thing using the tf diff command line tool.

like image 77
James Reed Avatar answered Sep 18 '22 14:09

James Reed


You can do a "preview get" from the command line: tf get /recursive /preview will output the list of files that it would do a get of to update you to the latest version.

like image 33
Edward Thomson Avatar answered Sep 20 '22 14:09

Edward Thomson