Add the DiffCommit model.
Review Request #6766 — Created Jan. 13, 2015 and discarded — Latest diff uploaded
The
DiffSet
model has been updated to be able to contain several
DiffCommit
s in addition toFileDiff
s. TheDiffCommit
model
represents a single commit in distributed version control system
(DVCS). EachDiffCommit
has one or moreFileDiff
s 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
of DiffCommits it currently has.Update the
reviewboard.diffviewer.admin
module to add the ability to
view individualDiffCommit
s. TheDiffCommit
s can be as inline
models of theDiffSet
model and haveFileDiff
as an inline model.
Ran unit tests.
Applied evolution successfully.
Diff Revision 10
This is not the most recent revision of the diff. The latest diff is revision 14. See what's changed.
reviewboard/diffviewer/admin.py |
---|
reviewboard/diffviewer/models.py |
---|
reviewboard/diffviewer/evolutions/__init__.py |
---|
reviewboard/diffviewer/evolutions/add_commit_history_fields.py |
---|