def commits(self, branch, since = <NUM_LIT:0>, to = int(time.time()) + <NUM_LIT>):
commits = {}<EOL>for changeset in self.repo.log(branch = "<STR_LIT:default>"):<EOL><INDENT>commit = self._commitData(changeset)<EOL>if commit["<STR_LIT>"] < since:<EOL><INDENT>continue<EOL><DEDENT>if commit["<STR_LIT>"] > to:<EOL><INDENT>continue<EOL><DEDENT>commits[commit["<STR_LIT>"]] = commit<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