Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS: "Get This Version" vs "Rollback Entire Changeset"

Tags:

tfs

I find myself needing to remote debug some deployed code, I have a clear changeset defined in tfs that is the code that was deployed.

My question is: What is the standard procedure in TFS to ensure my local code matches what has been deployed to live.

"Get This Version": I seem to recall that operation only checks out the changeset in question, leaving all other files in place, some of which have have been changed by another later changeset

"Rollback Entire Changeset": This one appears most promising, but I'm confused if it means 'Roll back TO this changeset', or if it means 'Roll back this changeset' effectively leaving the code in a state BEFORE that changeset was checked it.

Any clarification would be greatly appreciated.

like image 235
Ninjanoel Avatar asked Sep 13 '17 10:09

Ninjanoel


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. Follow this answer to receive notifications.

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 roll back to a previous commit in TFS?

Open up the Changes view in Team Explorer. Select Actions and choose View History from the drop-down. In the history window that appears, right-click the commit to undo and select Revert from the context menu.


1 Answers

According to your description, you shouldn't use rollback entire changeset feature. This will influence your source control in TFS. If you roll back a file to an earlier version, tfs will eliminating the effect of all changesets that occurred after that version. More details please take a look at this tutorial: Roll back changesets

Actually you just want to get an older version in history include all files for a branch or root project folder.

In TFS, you could Get Specific Version instead of get latest version of the branch. Details please refer this question: TFS Get Specific Version into separate folder

How to do this in VS: right click the branch-Advance-Get Specific Version. Have a look at my answer in this similar question: TFS source code explorer: browse specific revision

like image 87
PatrickLu-MSFT Avatar answered Oct 04 '22 16:10

PatrickLu-MSFT