[WIP] Add support for multi-commit review requests.
Review Request #6618 — Created Nov. 21, 2014 and discarded — Latest diff uploaded
Add the a
diffviewer.Commitmodel. EachCommitbelongs to a
DiffSet(which may have many commits) and may have manyFileDiffs.
However, an old-fashioned review request (of squashed changes) will
not have anyCommits associated with it.Add a foreign key on the
FileDiffmodel which links it to a
Commit. EveryFileDiffstill corresponds to aDiffSet, but they
now can optionally correspond to aCommit.Add a
RelationCounterFieldon theDiffSetmodel to keep track of
the number ofCommitscorresponding to theDiffSet. This way, the
DiffSetcan easily be checked if it is a multi-commit review request
or not.Add evolution (
new_commit_fields.py) for new fields onFileDiff
andDiffSet.TODO:
- Add an API endpoint so that multiple commits can be attached a review
request