Here's the scenario -
- Development branch was created from mainline, with many thousands of files in it
- A couple of thousand files were modified.
- Changes from mainline were "p4 integrated" into the branch. Hopefully integrations always included the complete mainline as of a known-good label, but I'm not sure of this
- Steps 2 and 3 were repeated an unknown number of times - let's guess a dozen integrates, and probably another 1000 or more changes, usually to files already modified
I am now in the painful position of trying to code review this.
Are there any commands that can help me get the diffs for each modified file between the version last integrated to it, and the version in the branch?
Or do I need to write:
- A script which will identify all locally changed files.
- A script which will find the integration point for each file in the above list
- Another script which will use (2) to purge the list in (1) of files with no net change
- A wrapper on (2) that will issue an appropriate p4 diff2 command
FWIW, I basically know how to do this manually, file by file. It's the scale that's daunting. Also, there are changes still going into the branch, in response to code review feedback, so I'll probably be recreating my lists repeatedly.