Add Bitbucket functionality to mkrepo().