Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rollback entire solution/project to specific changeset in TFS?

I am at changeset 121.

I want to rollback down to version 112, ignoring all the changes I've made since then.

I found this answer but I can't find the command in the menu. I'm struggling with this over an hour now and can't find the real solution. All I'm trying to do is rollback to changeset 112 disregarding all the changes made since then. Just like going back in time entirely erasing the past.

like image 249
Shimmy Weitzhandler Avatar asked Apr 10 '13 01:04

Shimmy Weitzhandler


People also ask

What is rollback entire changeset in TFS?

Rollback entire changeset will give you a set of Pending Changes that when checked in will "undo" what was done in changeset 601. The result is that you will have 3 changesets: 600, 601, 602. And the resulting state will be the same as after 600.

How do I get a specific changeset in TFS?

Take searching for a changeset in Visual Studio's TFS Source Explorer. Luckily if super easy to do! When you're in the Source Explorer, simply press Ctrl + G and the Find ChangeSet dialog will appear.

How do I rollback a changeset in TFS 2010?

Rollback reference (TFS 2010)right click file in Visual Studio and Source Control/View History then select last changeset, right click and click Rollback After rollback done, you should check in again.

How do I rollback a file in TFS?

Right-Click If you have the File List open, right-click the file you want to roll back and select Source Control > View History. Source Control Explorer With the Pending Changes pane open, right-click the file you want to roll back and select View History.


2 Answers

You can actually do that. In Source Control, view the history of your solution project, then select all the changesets down till the one you want to rollback to and then right click-> rollback. That will roll back all changesets in order, effectively undoing ALL changes made to the solution folder

like image 113
AndrewVS2013 Avatar answered Oct 14 '22 13:10

AndrewVS2013


Just like going back in time entirely erasing the past.

tfs does not allow you to do this. This rollback operation will be a new changeset 122 which will rollback everything to 112.

Roll Back Changesets

like image 30
outcoldman Avatar answered Oct 14 '22 11:10

outcoldman