Welcome to MSDN Blogs Sign in | Join | Help

How to: Find distinct changes by user?

You can find changesets if you open Source Control Explorer and hit Ctrl+G or choose Edit > Go to…

FindChangesets

However, this shows changesets with no details, you have to double click it first. If you want to see detailed info all at once, you can use the command-line:

tf hist /i /r /format:detailed /u:Adam itemSpec

This shows all details for all changesets made by Adam that contains any item in the tree specified in the command. To list changes only, you can pipe the output to find "$/":

tf hist /i /r /format:detailed /u:Adam itemSpec | find "$/"

This will show the changes but they might contain duplicates, to generate a unique list, you can run:

FOR /F "tokens=*" %i IN ('tf hist /i /r /format:detailed /u:Adam itemSpec ^| find "$/" ^| sort') DO @find "%i" < out.txt > NUL || @echo %i >> out.txt

Published Monday, March 23, 2009 10:34 PM by mohamedg
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker