Diff Context Resource¶
Added in 2.0
Provides context information for a specific diff view.
The output of this is more or less internal to the Review Board web UI. This will return the various pieces of information required to render a diff view for a given diff revision/interdiff. This is used to re-render the diff viewer without a reload when navigating between revisions.
|Token Policy ID||
|Parent Resource||Review Request Resource|
|Anonymous Access||Yes, if anonymous site access is enabled|
Returns the context info for a particular revision or interdiff.
The output of this is more or less internal to the Review Board web UI. The result will be an object with several fields for the files in the diff, pagination information, and other data which is used to render the diff viewer page.
Note that in versions 2.0.0 through 2.0.6, the
parameter was named
interdiff_revision. Because of the internal
nature of this API, this was changed without adding backwards
compatibility for 2.0.7.
The ID of the base commit to use to generate the diff for review requests created with commit history.
Only changes from after the specified commit will be included in the diff.
A list of case-sensitive filenames or Unix shell patterns used to filter the resulting list of files.
Added in 3.0.4
A tip revision for showing interdiffs. If this is provided, the
Added in 2.0.7
|pageInteger||The page number for paginated diffs.|
|revisionInteger||Which revision of the diff to show.|
The ID of the tip commit to use to generate the diff for review requests created with commit history.
No changes from beyond this commit will be included in the diff.
|100 - Does Not ExistHTTP 404 - Not Found||Object does not exist|
|101 - Permission DeniedHTTP 403 - Forbidden||You don’t have permission for this|
|103 - Not Logged InHTTP 401 - Unauthorized||You are not logged in|
|105 - Invalid Form DataHTTP 400 - Bad Request||One or more fields had errors|
|112 - OAuth2 Missing Scope ErrorHTTP 403 - Forbidden||Your OAuth2 token lacks the necessary scopes for this request.|
|113 - OAuth2 Access Denied ErrorHTTP 403 - Forbidden||OAuth2 token access for this resource is prohibited.|