Add post-commit support for BitBucket
Review Request #7513 — Created July 10, 2015 and submitted — Latest diff uploaded
Post-commit review request creation is now enabled for the BitBucket
hosting service. TheBitBucket
hosting service class is now able to
fetch lists of branches, lists of change metadata, and individual diffs
from the BitBucket API.BitBucket's API does not support fetching files by their blob IDs and
thebase_commit_id
parameter (which indicates the commit ID of the
revision we want the file at) must be used. This field was added to the
reviewboard.scmtools.core.Commit
class so that it could be used when
fetching commits from the API and to create review requests. Without
this parameter, review request creation will fail (as all file
existence checks will fail).
Added a BitBucket hosted repository on my development server. I was
able to create post-commit review requests.