GeoMac
GeoMac

Reputation: 93

Undo Pending Changes Visual Studio 2012 and TFS

I recently switch from Visual Studio 2010 to Visual Studio 2012 and it seems that "Undo Pending Changes" may be broken in the Visual Studio Version 11.0.50727.1 RTMREL. I'm using TFS 2010. When I try to undo changes I get the error "There are no changes to undo in the selection or any children of the selection" and I can't revert back to my original code.

Has anyone else observed this problem or know of a work-around?

The exact steps are:

  1. Add a new file to your project. TextFile1.txt for example, but it can be any type of file.
  2. Check in the file to TFS
  3. Check out the file and add one additional line of code.
  4. Save and verify that TFS is aware of the differences by doing a compare.
  5. Select the file in solution explorer and right-click and select Source Control / Undo Pending Changes...

You will see the message "Warning. There are no changes to undo in the selection or any children of the selection." OK/HELP. Pressing OK does not revert the file to it's previous state. (HELP doesn't help).

Upvotes: 4

Views: 8939

Answers (1)

the_lotus
the_lotus

Reputation: 12748

I had this problem. I fixed it by making a backup of my file. Then by doing a Get Latest, Undo Check out and then checked-out and put my changes back.

Upvotes: 2

Related Questions