Add an API resource to verify diff files.
Review Request #4252 — Created June 20, 2013 and submitted — Latest diff uploaded
Add an API resource to verify diff files. This change adds a resource to /api/verify-diff/ which accepts POST requests with arguments similar to DiffResource, but does not actually create a diff. This allows prospective clients (such as the web UI or rbtools) to validate whether a diff file will be usable before creating a review request for it.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
reviewboard/diffviewer/errors.py |
---|
reviewboard/diffviewer/parser.py |
---|
reviewboard/scmtools/testdata/svn_file_not_found.diff |
---|
reviewboard/webapi/errors.py |
---|
reviewboard/webapi/resources.py |
---|
reviewboard/webapi/tests.py |
---|