Undo Pending Changes in Visual Studio 2012 and TFS

I recently switched from Visual Studio 2010 to Visual Studio 2012, and it seems that “Undo Pending Changes” might be broken in Visual Studio version 11.0.50727.1 RTMREL. I am using TFS 2010. When I try to undo the changes, I get the error message “There are no changes to deselect or any children of the selection,” and I cannot return to the source code.

Has anyone else noticed this problem or knew about it?

Exact steps:

  • Add a new file to your project. TextFile1.txt for example, but it can be any type of file.
  • Check file in TFS
  • Check the file and add another line of code.
  • Save and make sure TFS is aware of the differences by doing a comparison.
  • Select the file in the solution explorer and right-click and select "Initial control / Undo pending changes ..."

A warning message appears. There is no change to deselect or any child selection. OK / HELP. Pressing the OK button does not return the previous state of the file. (HELP does not help).

+4
source share
1 answer

I had this problem. I fixed this by backing up my file. Then, by executing the “Get Last” command, “Undo Check”, then retrieve and revert my changes.

+2
source

Source: https://habr.com/ru/post/1439387/


All Articles