Add the DiffCommit model.
Review Request #6766 — Created Jan. 13, 2015 and discarded — Latest diff uploaded
The
DiffSetmodel has been updated to be able to contain several
DiffCommits in addition toFileDiffs. TheDiffCommitmodel
represents a single commit in distributed version control system
(DVCS). EachDiffCommithas one or moreFileDiffs that belong to
it (as well as theDiffSet).Add an evolution to add a foreign key on the
FileDiffmodel to point
to an optionalDiffCommitmodel. Also add an evolution to add a
RelationCounterFieldto theDiffSetmodel that counts the number
of DiffCommits it currently has.Update the
reviewboard.diffviewer.adminmodule to add the ability to
view individualDiffCommits. TheDiffCommits can be as inline
models of theDiffSetmodel and haveFileDiffas an inline model.
Ran unit tests.
Applied evolution successfully.