Search code examples
visual-studio-2010tfstf-clitfvc

How do I view all work that a specific user has checked in?


Another user has made several changes in different places throughout a specific project.

How do I see which files have been checked-in by a specific user?


Solution

  • From the command line issue:

    tf history $/ProjectName /user:domain\user /recursive /noprompt

    That will list all the changesets of that user

    Then issue:

    tf changeset 12345 /noprompt

    To list all the changes in that changeset.

    Currently I can't think of one command which will give you both. But you might be able to use Powershell or a custom console app that leverages the TFS Client Object Model to piece something together that does.

    enter image description here

    tf.exe can be found in the following folder: C:\Program Files (x86)\Microsoft Visual Studio {VISUAL STUDIO VERSION}\Common7\IDE. The easiest way to use it, is to open the command prompt using the "Visual Studio / Developer Command Prompt" item in the start menu that is created when you install Visual Studio.

    enter image description here

    As Tim Mentions, you can use the TFS Side Kicks to query this information as well. For Visual Studio 2010, this is still a stand alone application, for Visual Studio 2013 it nicely integrates into the Source Control Explorer context menu:

    enter image description here