How to find all files a particular user has ever changed in Team Foundation Server
Asked Answered
G

4

22

I know there is an easy way to do this with SVN so there must be a similar way with TFS.

Basically, I want to have a list of every file a particular username ever edited (IE: checked out & changed or added). This is on TFS 2008.

Gradeigh answered 4/8, 2009 at 13:17 Comment(1)
You'd better decode what TFS is. Many poeple wouldn't know that it's Team Foundation Server (msdn.microsoft.com/en-us/teamsystem/default.aspx)Koheleth
G
27

I found one way to do it:

  1. Go to Source Control Explorer in Visual Studio
  2. Right click on the project root
  3. Select Find in Source Control -> Changesets
  4. Enter the username you are looking for in the 'By User' field
  5. Click find

This returns a list of changesets from the user. You can then click the details button to expand the changeset.

Gradeigh answered 4/8, 2009 at 13:47 Comment(3)
Just rebuilt my machine and noticed that the 'Find in Source Control' option is part of the TFS Power Tools - Oct 2008 package as well.Gradeigh
To open the “Source Control Explorer”, open the “View” menu, click “Other Windows”, and then click “Source Control Explorer”.Community
In case any VS 2013 users make it here, like me, here are the steps: 1. Open Source Control Explorer. 2. Right click on project root. 3. Click "Find" -> "Find Changesets". 4. Enter username in "By user" box. 5. Click "Find" button.Andrea
H
12

The answers so far return a list of changesets, not a list of files. Try:

Get-TfsItemHistory $/ -r -user username -all | Select-TfsItem | sort -unique path

Using the Powershell cmdlets also included with the Power Tools.

Harpoon answered 4/8, 2009 at 14:9 Comment(0)
D
3

Bryan - the answer you provided is one way. You can also do this in fewer steps by installing the free Team Foundation Server Power Tools - October 2008 Release from MSDN. There are a number of great out-of-band updates to the Team Explorer feature set, but the one you are interested in is called the Team Members feature:

Team Members Node http://img34.imageshack.us/img34/7195/image21k.png

This will allow you to quickly search for all check-in's by a given Team Member. Look around at the other features as I am sure you will find some other handy things as well. Personally, I like the "Show Shelvesets" as it makes it much easier to use the Shelveset feature for code reviews, etc.

Danyel answered 4/8, 2009 at 13:55 Comment(0)
D
0

I know how to do this in VS2010 and I'm sure it works the very similar in VS 2008 --

In Visual Studio, open "Team Explorer" window.
Expand your main TFS branch.
Expand "Team Members" branch. Under this branch you will see the names of all TFS members.
Right-click a member, and select "Show Checkin History". This will list all the files changed (checked in) by the selected member.

I hope this helps. Good luck!

Dineen answered 5/6, 2014 at 14:38 Comment(1)
In VS 2010 Premium "Team Members" branch isn't available. So for VS 2010 Premium the steps would be Source Control Explorer (View --> Other Windows) --> Select the Project --> From 'File' menu --> Source Control --> Find In ChangesetsFattish

© 2022 - 2024 — McMap. All rights reserved.