Add post-commit support for BitBucket

Review Request #7513 — Created July 10, 2015 and submitted — Latest diff uploaded

Information

Review Board
release-2.5.x

Reviewers

Post-commit review request creation is now enabled for the BitBucket
hosting service. The BitBucket 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
the base_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.