What is the difference between Rollback and "Get This Version" ?
Both of them let me go back to a specific version and from there doing changes and check-in.
What are the additional benefits of having both of them?
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.
You can do this by right clicking the solution folder in the Source Control Explorer and selecting Get Specific Version. Here you can select a specific version either by specifying a changeset, label or date.
To roll back to a specific version In Source Control Explorer, select an item, open its shortcut menu, and choose Rollback. In the Rollback dialog box, select Rollback to a specific version.
Get specific version/Get this version
Only effects your local workspace, it reverts all your local changes to an older version. When you try to check these changes in, you'll get a merge conflict and will need to resolve these issues. It's useful when you need to debug an older version of your application for example. Checking in and forcing the local version on merge will not delete any files that were added and can cause quite a bit of mayhem. Plus, it's unclear what you've done, as all the changes will just show up as edit or add. Get specific version also doesn't revert any merge tickets, thus later merges can result in unexpected behaviors.
Rollback
Creates a compensating checkin for the selected changes. It will rollback only the changes in the selected changesets (and can roll back an arbitrary changeset in the history). It appends this change as a new changeset with the special "rollback" type. So it's clear from the history that you went back and reverted some previous changes. A rollback will correctly compensate an add by deleting the file and a delete by adding it back in. When rolling back a merge, the merge tickets also get reverted, ensuring that these changes are reevaluated when you try to merge branches later.
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