Add DiffCommit model for review requests with commit histories.
Review Request #6815 — Created Jan. 21, 2015 and submitted — Latest diff uploaded
The
DiffSetmodel has been updated to be able to contain several
DiffCommitsin addition toFileDiffs. TheDiffCommitmodel
represents a single commit in distributed version control system
(DVCS). EachDiffCommithas one or moreFileDiffsthat 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
ofDiffCommitsit currently has.Update the
reviewboard.diffviewer.adminmodule to add the ability to
view individualDiffCommits. TheDiffCommitscan be as inline
models of theDiffSetmodel and haveFileDiffas an inline model.Add unit tests for creating empty
DiffSetsas well as creating
DiffCommitsfrom.difffiles and uploading via the
UploadDiffCommitform.Updated the
ValidateDiffResourcewith respect to the new refactoring
of theDiffSetManager.
Unit tests pass.
Applied evolution successfully.