Get a copy/pasteable list of files from a changeset # in TFS
Working in Visual Studio, there isn't a built-in way to get the list of files that were changed in a particular changeset that is easy to copy and paste (for an email, bug tracker, etc.). Here's a small batch program that you can keep open in a console that you can just pass a changeset number into and get all the files changed:
@echo off
SET tfs=http://YOUR_TFS_SERVER:8080/
:number
ECHO Enter changeset number (0 to exit):
SET /p chg=
IF NOT %chg% GTR 0 GOTO end
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" changeset /server:%tfs% %chg% /noprompt
GOTO number
:end
All you have to do is add the location of your TFS server and double-check the path to the TFS tools is correct for your install and you should be all set.
Fork the gist: https://gist.github.com/944714
Written by travis
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#