I've been using various source control systems for a while, but when it comes to reverting changes I'm not yet an expert. Can someone help given this scenario:
Scenario
- Given a bug was introduced in revision #5
- And 3 files were changed in revision #5
- And changes in 2 files were responsible for the bug
- When the customer discovers the bug in a release of revision #9 (HEAD)
- Then 2 of the files causing the bug from revision #5 must be reverted to revision #4
- And changes from revision #6 to HEAD must be applied to the two files
I expect there must be a way to compare revisions #4 and #5 of the two files and generate a patch that undoes the changes in revision #5, which can then be applied to the HEAD revision to roll-back the defect.