TFS Tricks: Reverting unchanged files

April 7, 2007 – 4:31 pm

So 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.

Share on:
  • Digg
  • description
  • del.icio.us
  • TwitThis
  • Live
  • Google

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word