TFS Tricks: Reverting unchanged files
Saturday, April 7, 2007 – 4:31 PMSo my new(ish) team, patterns and practices, use TFS rather than the internal tool that I used while developing VS 2005. I’m still learning some of the finer points of TFS to allow me to do some of the things I used to take for granted.
One complaint I have with TFS is that you end up checking in a lot of files that you didn’t actually change. While TFS is smart enough to figure this out and not really use any space storing null diffgrams it makes your checkins very noisy. This happens a lot when generating T4 templates for DSLs etc.
Turns out the TFS Power Tool has a command to help solve this problem.
tfpt uu
This will figure out which files are unchanged and allow you to revert them. Remember to hit the Refresh button in the Source Control Explorer to sync the IDE up with changes you made from the shell.
One Response to “TFS Tricks: Reverting unchanged files”
thanks for the info. This works, though it’s hard to believe it’s not part of the core functionality of tf.exe or the visual studio pending changes screen.
By Bruce H on Aug 3, 2011