Allow fetching patch files for individual commits
Review Request #7131 — Created March 28, 2015 and submitted
The patch file for an individual commit is now fetchable by sending the
Accept: text/x-patch
header to theDiffCommitResource
and
DraftDiffCommitResource
. This patch is composed of the individual
patches for allFileDiff
s in theDiffCommit
.
Ran unit tests.
Uploaded a review request with commit history and made an HTTP request
to theDiffCommitResource
API endpoint with aAccept: text/x-patch
header. The returned response was a patch file that contained only the
diff information forFileDiff
s in that commit.
Summary: |
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
-
-
-
reviewboard/webapi/resources/diff_commit.py (Diff revision 1) While I don't expect it to be a problem, we should make sure this doesn't contain commas.
Change Summary:
Fixup
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+51 -5) |