Add support for commit history information in the DiffCommitResource
Review Request #8276 — Created July 8, 2016 and submitted
The
DiffCommitResource
now accepts the original commit IDs of a commit
when creating. These IDs can be used to show the evolution of a commit
history over time, e.g., when two commits get squashed into one commit
or a commit is amended.The
ValidateDiffCommitResource
has also been updated to accept the
required fields.
- Ran unit tests.
- Used https://reviews.reviewboard.org/r/8278/ to upload a rebased
patch withrbt
and saw the relationships in the database.
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/draft_diff_commit.py reviewboard/diffviewer/models.py reviewboard/webapi/tests/test_draft_diff_commit.py reviewboard/diffviewer/tests.py reviewboard/webapi/resources/diff_commit.py reviewboard/diffviewer/forms.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/draft_diff_commit.py reviewboard/diffviewer/models.py reviewboard/webapi/tests/test_draft_diff_commit.py reviewboard/diffviewer/tests.py reviewboard/webapi/resources/diff_commit.py reviewboard/diffviewer/forms.py
- Description:
-
The
DiffCommitResource
now accepts the original commit IDs of a commitwhen creating. These IDs can be used to show the evolution of a commit history over time, e.g., when two commits get squashed into one commit or a commit is amended. + + The
ValidateDiffCommitResource
has also been updated to accept the+ required fields. - Testing Done:
-
~ Ran unit tests.
~ - Ran unit tests.
+ - Used https://reviews.reviewboard.org/r/8278/ to upload a rebased
patch withrbt
and saw the relationships in the database.
- Commit:
-
167e2372eaffc8c77637cf8039332a2a03dd3b0b9c0e32230ede1162b8ee1035de27a4c08714d3e9
- Diff:
-
Revision 3 (+285 -36)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/draft_diff_commit.py reviewboard/diffviewer/models.py reviewboard/webapi/tests/test_draft_diff_commit.py reviewboard/webapi/resources/validate_diff_commit.py reviewboard/diffviewer/tests.py reviewboard/webapi/resources/diff_commit.py reviewboard/diffviewer/forms.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/draft_diff_commit.py reviewboard/diffviewer/models.py reviewboard/webapi/tests/test_draft_diff_commit.py reviewboard/webapi/resources/validate_diff_commit.py reviewboard/diffviewer/tests.py reviewboard/webapi/resources/diff_commit.py reviewboard/diffviewer/forms.py