I'd like to rollback a change I made recently in TFS. In Subversion, this was pretty straightforward. However, it seems to be an incredible headache in TFS:
Option 1: Get Prior Version
- Manually get prior version of each file
- Check out for edit
- Fail – the checkout (in VS2008) forces me to get the latest version
Option 2: Get TFS Power Tools
- Download Team Foundation Power Tools
- Issue rollback command from cmd line
- Fail – it won't work if there are any other pending changes
Option 3: Manually Undo Changes
- manually undo my changes, then commit a new changeset
Question
How do I rollback to a previous changeset in TFS?
Best Answer
The big disadvantage of the tool is that it will want to refresh everything in your workspace before you can merge. I got around this issue by creating a new workspace just for the rollback which mapped directly to the place in the source tree where the affected files were.
If you need help to figure out which changesets to roll back, I find the code review tool in the free Team Foundation Side Kicks add-in very helpful.