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.
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).
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.
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.
Or you could do the same thing using the tf diff
command line tool.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With