Add DiffCommit model for review requests with commit histories.
Review Request #6815 — Created Jan. 20, 2015 and submitted — Latest diff uploaded
The
DiffSet
model has been updated to be able to contain several
DiffCommits
in addition toFileDiffs
. TheDiffCommit
model
represents a single commit in distributed version control system
(DVCS). EachDiffCommit
has one or moreFileDiffs
that belong to
it (as well as theDiffSet
).Add an evolution to add a foreign key on the
FileDiff
model to point
to an optionalDiffCommit
model. Also add an evolution to add a
RelationCounterField
to theDiffSet
model that counts the number
ofDiffCommits
it currently has.Update the
reviewboard.diffviewer.admin
module to add the ability to
view individualDiffCommits
. TheDiffCommits
can be as inline
models of theDiffSet
model and haveFileDiff
as an inline model.Add unit tests for creating empty
DiffSets
as well as creating
DiffCommits
from.diff
files and uploading via the
UploadDiffCommit
form.Updated the
ValidateDiffResource
with respect to the new refactoring
of theDiffSetManager
.
Unit tests pass.
Applied evolution successfully.