Tuesday, May 3, 2011

How can I list all files checked in by me in Team Foundation Server?

How can I list the last x files I checked in to TFS?

From stackoverflow
  • In Source Code explorer, right click on the project and click View History.

  • Install Team Foudation SideKick, you will have a lot of filter to search what you want inside TFS.

  • Using the TFS PS Snapin included with the TFS PowerToys1...

    Get-TfsItemHistory "$/" -recurse -stop 50 -user "my-username" | % { Get-TfsChangeset $_.Changesetid} |select -expand changes | select -first 20
    

    The -stop 50 in the first stage is to avoid every change ever being retrieved which will slow things down with a significant repository. Also note, this does not eliminate duplicates where the same file is part of multiple changesets.

    1 Information here, here and download. Use the custom install to add the PSSnapin.

  • tf history /user:myusername /stopafter:10 /recursive /noprompt $/

0 comments:

Post a Comment