[WIP] Add support for multi-commit review requests.
Review Request #6618 — Created Nov. 21, 2014 and discarded — Latest diff uploaded
Add the a
diffviewer.Commit
model. EachCommit
belongs to a
DiffSet
(which may have many commits) and may have manyFileDiff
s.
However, an old-fashioned review request (of squashed changes) will
not have anyCommit
s associated with it.Add a foreign key on the
FileDiff
model which links it to a
Commit
. EveryFileDiff
still corresponds to aDiffSet
, but they
now can optionally correspond to aCommit
.Add a
RelationCounterField
on theDiffSet
model to keep track of
the number ofCommits
corresponding to theDiffSet
. This way, the
DiffSet
can 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