TFS + get latest - tfs

When I get the latest version from TFS, is there a way to list the files that were updated?

if you are using the Visual Studio IDE, you can see the list of files get in the "Output" window.
To see the "Output" window, select menu View-->Output.
Hope this helps!

To your question tf.exe get may help http://msdn.microsoft.com/en-us/library/fx7sdeyf.aspx.
So,
tf get c:\MyWorkspace /all /recursive /noprompt >C:\TFResults\results.txt

Yes.
Open Team Explorer
Select project
Double click Source Control
Optional to get latest: Right click the folder you need and choose Get Latest Version or Get Specific Version and then choose Latest and Overwrite.
Right click the folder you need and choose View History.

You need to take a look into the files on the Output Window. The changeset list, can give you an idea of which are the latest changes files and you can search for those changes.
But a dummy idea is to map your tfs workspace to another folder and download all the files, then user the WinMerge, BeyondCompare or another tool to compare the files in the specific folders you have to get the differences between the latest code, and your current one.
Hope this help

Related

Visual Studio 2015 - Merge tool button missing

I'm having problems with merge tool in Visual Studio 2015. I didn't need the merge tool for the longest time, I haven't used it for couple of months. Now when I need it I can't find it. I was trying to google and find an answer, checking VS settings but with no success. I can only see buttons 'Overwrite Local File or Folder' and 'Keep Local File Contents'. When I press Compare button, I see diff tool but I'm not able to accept changes (check buttons are missing).
What am I doing wrong? How can I merge two files?
Please navigate to files in source control
Right click on file/folder you want to branch>>Merge
Full list of other solutions.
This is because these files in your local folder are not been tracked by TFS Version Control. For example, you added a file "readme.txt" in you local folder and hadn't check-in them into version control. Another people in your team also added this file in the same relative path and checked it into version control. Now, when you get the latest version or check in your changes, you will get the behavior as your screenshot. A similar question can be found here: TFS Conflict Type: Writable File - A writable file by same name exists locally
It's doing exactly the same things in Visual Studio 2017.
If you had a problem in workspace and you rollback it from a save, you can have the same issue.
You need to rebind some of the project by yourself first like the asked question here : Re etablish TFS source control bindings, then if all is going well you will see the button.
If it's not working, try to use external merge tool which will allow you to edit thoses files.

TFS Get Latest Log

I ran a Get Latest... command in TFS and it pulled down a bunch of files that weren't current in my workspace. My problem is that I have no idea how to tell which files it pulled down.
Can someone point me to a location where I can see what files TFS retrieved from my most recent Get Latest... operation?
in visual studio select View->Output from the menu, then in the drop down box "show output from" select "source control - tfs"
I don't think that there is a command for this but you could look at the Commit History in TFS to see what changed since the last commit. It's usually good practice to look at the history before getting latest version to know what has changed and what you are about to update.

Team Foundation Server - Viewing files in the last commit for a user

I want to know how to view a list of all files that was committed by a user in their last commit. Not all files committed by them just the ones which were committed in the last batch. For example, suppose I just committed 10 files in TFS and now I want to view the list of just those 10 files.
How do I do that?
Thanks,
-R
In visual studio 2010 you can also go to file, source control, changesets and search for changesets from this windows. You have the option of applying filter on changesets by users, or by date or by change set ids. Get the results and you can double click to see the files that are part of the changesets displayed in a new window.
Or you install Team Foundation Sidekicks and go over the shelveset sidekick menu and get this screen
Ok got it.
Open any single file that you remember being part of the changeset in Visual Studio. Right click the file, go to source control and click on view history. Select the version you committed and right click then select view changeset details.
-R

Using TFS source control - how to remove files

I am a lone developer, and I am now using TFS 2010, having until recently used VSS.
I have not found it easy to get any books for beginners to help me use this.
So I have now got my project in source control. But when I check in I get references to a number of files that I no longer use. How do I remove files from the TFS Source Control repository?
So in the example below, you can see lots of files from different projects that I do not want to see.
Click on the last icon that looks like a solution (.sln) file icon (last icon on the top vertical row). It's right next to the refresh icon and just above the "Comment" box. That should clear all non-related project files, and only show the files on your current project.
In Source Control Explorer in Visual Studio, simply right-click on files and folders and choose "Delete". Then right-click again and choose "Check-in pending changes".
You need to Destroy those files first, then only those files will get removed from source control.
You can't make any changes in those files - they remain in source control until you destroy them permanently from TFS.
For more info about how to destroy see TF Destroy command utility.
The files in your screenshot are (mostly) listed as add - they are not in TFS yet, so deleting them from TFS is not what you want. Rather you want to ignore them, though that can be tricky: How to ignore files/directories in TFS for avoiding them to go to central source repository?

Query TFS for updated files

I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for.
In Visual Studio Source Control Explorer, right click on the directory you want to compare, and select "Compare". It will pop up a dialog with a couple of filtering options, and then show you what's out of date.
if they checked them in as part of a single changeset then you can find them that way.
(right click file in solution explorer, view history, double-click on the relevant changeset and you'll see all the related files for that checkin)
Is your question about finding this info via the TFS API via the website, or via the visual studio interface?

Resources