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.
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With