Fixing revlink in bitbucket-hook.

Same as pull-request #1181 but fixed tests (i hope) and added release-note.