def commit(self, commit):
req_message = '<STR_LIT>' + commit<EOL>response_data = self._bitbucketAPIRequest(req_message)<EOL>try:<EOL><INDENT>return self._commitData(response_data)<EOL><DEDENT>except (ValueError, KeyError):<EOL><INDENT>raise KeyError("<STR_LIT>" % commit)<EOL><DEDENT>
Get data for a given commit

        Raises KeyError if a commit is not found or not parsed.

        :param commit: repository commit
        :type  commit: string