def commits(self, branch, since=<NUM_LIT:0>, to=int(time.time()) + <NUM_LIT>):
since_str = datetime.datetime.fromtimestamp(since).strftime('<STR_LIT>')<EOL>to_str = datetime.datetime.fromtimestamp(to).strftime('<STR_LIT>')<EOL>commits = {}<EOL>req_message = '<STR_LIT>' + self.reponame +'<STR_LIT>' + branch<EOL>loop_continue = True<EOL>while loop_continue:<EOL><INDENT>response_data = self._bitbucketAPIRequest(req_message)<EOL>for commit in response_data['<STR_LIT>']:<EOL><INDENT>if commit['<STR_LIT:date>'] < since_str:<EOL><INDENT>loop_continue = False<EOL>break<EOL><DEDENT>elif commit['<STR_LIT:date>'] > to_str:<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>commits[commit['<STR_LIT>']] = self._commitData(commit)<EOL><DEDENT><DEDENT>if '<STR_LIT>' not in response_data:<EOL><INDENT>break<EOL><DEDENT>req_message = response_data['<STR_LIT>']<EOL><DEDENT>return commits<EOL>
For given branch return a list of commits.
        Each commit contains basic information about itself.

        :param branch: git branch
        :type  branch: [str]{}
        :param since: minimal timestamp for commit's commit date
        :type  since: int
        :param to: maximal timestamp for commit's commit date
        :type  to: int