56

I just want to get the list of all change sets of a user in TFS. I want only the id of the change set, and a link to all items which are being checked in as part of that change set.

How can I do that?

Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188

4 Answers4

82

Besides option presented by Richard, you can also do that from within VS using the "Changesets" option:

enter image description here

It's also possible to do it via the API. I can provide a short snippet, if you're interested.

RJFalconer
  • 10,890
  • 5
  • 51
  • 66
pantelif
  • 8,524
  • 2
  • 33
  • 48
  • What is this icon(option) called? I am having VS 2010 Professional and I can't see this icon. Could you please tell me how to navigate to this option from Menu? I can't see it in View > ... either. – Real Red. Jun 11 '13 at 03:07
  • 3
    @RealRed Late reply, but it's called Changesets, and **you have to have the Source Control Explorer open to see it**. – AaronLS Oct 23 '13 at 17:31
  • This helps to find them, but the the new window's functionality is different than what you can do in the main source control explorer. IE you can't request a code review for a change set, which is the reason I wanted to find all my changesets in the first place. – Jerry Nov 11 '14 at 18:59
18

For Visual Studio 2013

  1. Open Source Control Explorer
  2. Right click on the repository you want to search
  3. Select Find => Find Changesets
  4. The "Find Changesets" window will open where you can filter by username.

TFS repository context menu

Community
  • 1
  • 1
pistol-pete
  • 1,213
  • 17
  • 13
12

tf hist ‹item› /user:name will filter the history by user, so this could be used to get a complete set of changes for a user, from which the changeset numbers can be extracted.

Richard
  • 106,783
  • 21
  • 203
  • 265
  • You mean there is no simple way of creating a query using TFS GUI? – Saeed Neamati Sep 29 '11 at 08:03
  • 1
    @SaeedNeamati I didn't even try: the GUI has extremely limited querying options for change history – but I see this is one thing it can do :-). – Richard Sep 29 '11 at 09:53
  • 2
    If you're not looking for a specific item, pass the `/recursive' option – bdukes Sep 12 '13 at 18:17
  • You can also write it to a .txt file. Much more useful than GUI only stuff. tf.exe history /user:johnsmith MyBranch /server:http://mytfsserver.com:8080/tfs/myProject /recursive /noprompt > c:\johnsmithhistory.txt – granadaCoder May 03 '17 at 13:46
0

I found a round about way.

You can open a TFS task, and link a Changeset to the task. There you can browse for a changeset using search parameters.

I don't know why this is the only place where this functionality is available, but at least it's there.

hannodb
  • 223
  • 1
  • 11