We have a code review process in place where a developer sends out a patch file with his changes to the team. After reviewing it, he is instructed to commit or make changes and resend.
How can we ensure that what has been “committed” is exactly what has been “approved” – i.e., if he makes subsequent changes without approval and commits those, how can I detect those?
I have the original ‘patch file’ at my end, but:
- How can I ‘generate’ something similar between the two committed versions and
- Is it viable to compare those two files?
I am guessing you could do this by applying the patch on the old revision and then comparing the same against the latest version of code for difference.
You could use svn diff for this.
You probably wanna take a look at this answer: How to make svn diff produce file that patch would apply, when svn cp or svn mv was used?