def commit(self, commit):
try:<EOL><INDENT>changesets = self.repo.log(revrange=commit)<EOL><DEDENT>except error.CommandError:<EOL><INDENT>raise KeyError("<STR_LIT>" % commit)<EOL><DEDENT>return self._commitData(changesets[<NUM_LIT:0>])<EOL>
Get data for a given commit

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

        :param commit: repository commit
        :type  commit: string