Support base commit IDs for diff validation.
Review Request #7015 — Created March 6, 2015 and submitted
The diff validation resource didn't have any support for base commit
IDs, which broke posting diffs against Bitbucket repositories. It now
accepts abase_commit_id
field in the API, which will be passed to
DiffSetManager.create_from_upload
.There's also a new capability, so that RBTools can determine whether to
validate diffs when it has abase_commit_id
value.
Unit tests pass.
- Change Summary:
-
Add the missing capabilities and tests.
- Commit:
-
8cb8ac62681d854c276e00bad5effbe8bd05633aa5e745097ec717a7627db0936d4357b6b73544bc
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/validate_diff.py reviewboard/webapi/tests/test_validate_diff.py reviewboard/webapi/tests/test_root.py reviewboard/webapi/server_info.py reviewboard/webapi/tests/test_server_info.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/validate_diff.py reviewboard/webapi/tests/test_validate_diff.py reviewboard/webapi/tests/test_root.py reviewboard/webapi/server_info.py reviewboard/webapi/tests/test_server_info.py