undoing pending changes through visual studio hangs for large number of changes

tfs, visual-studio-2012

Solution

`tf undo` from the Developer Command Prompt for VS2012 slightly faster than the IDE.

e.g: `tf undo $/YourTeamProject /recursive`

Problem

I am using vs2012 with tfs. The whole things hangs when i try to undo a big changeset for an entire solution. The workaround I have adopted is to do this project by project. Is there a better way to do this? I would re-map tfs to a fresh directory but then all those checkouts would still need to be undone. Any suggestions from people who have encountered and resolved this problem are welcome.

Original source