Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 629
Jay Jay Jay Avatar asked Apr 09 '13 15:04

Jay Jay Jay


People also ask

How do I undo pending changes in Visual Studio?

To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change. In the Undo Pending Changes dialog box, make sure the changes you want to undo are selected, and then choose Undo Changes.

How do I see pending changes in TFS?

Select that folder in TFS explorer and right click. you will see the option "Checkin Pending changes.." Show activity on this post. In the team explorer open up the source control tab, then right click on the route folder and select Check in Pending Changes.


2 Answers

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

e.g: tf undo $/YourTeamProject /recursive

like image 167
KMoraz Avatar answered Oct 14 '22 05:10

KMoraz


It doesn't do much - it sends an Undo request to the server and in response receives the data to put on disk. If you have a slow connection to the server or you have a slow proxy (virus scanner, maybe?) then this can slow things down significantly.

If you find this happening a lot, your best course of action is to upgrade to TFS 2012 on the server, Visual Studio 2012 on the client, and then ensure that you are using a Local Workspace. In this case, you need not contact the server to undo.

like image 23
Edward Thomson Avatar answered Oct 14 '22 05:10

Edward Thomson