Allow diff generation starting at a base commit
Review Request #7322 — Created May 20, 2015 and submitted
The diffviewer can now generate a commit starting at a certain commit.
This allows the diffs of individual commits in a commit history to be
viewed, as well as spans of commits.This change also updates the WebAPI's
DiffContextResource
so that the
commit selection UI can request ranges of commits instead of the entire
history.
Ran unit tests.
- Change Summary:
-
This change has been split up into several changes.
- Summary:
-
[WIP] Backend for commit selection UIAllow diff generation starting at a base commit
- Description:
-
~ Backend for commit selection UI
~ The diffviewer can now generate a commit starting at a certain commit.
+ This allows the diffs of individual commits in a commit history to be + viewed, as well as spans of commits. + + This change also updates the WebAPI's
DiffContextResource
so that the+ commit selection UI can request ranges of commits instead of the entire + history. - Testing Done:
-
~ TODO.
~ Ran unit tests.
- Depends On:
![reviewbot](https://reviews.reviewboard.org/static/ext/reviewbotext.extension.ReviewBotExtension/images/reviewbot.png)
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources/diff_context.py reviewboard/diffviewer/chunk_generator.py reviewboard/diffviewer/renderers.py reviewboard/diffviewer/diffutils.py reviewboard/diffviewer/views.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/webapi/resources/diff_context.py reviewboard/diffviewer/chunk_generator.py reviewboard/diffviewer/renderers.py reviewboard/diffviewer/diffutils.py reviewboard/diffviewer/views.py