def commit(self, commit):
		"""Get data for a given commit

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

		:param commit: repository commit
		:type  commit: string
		"""
		try:
			changesets = self.repo.log(revrange=commit)
		except error.CommandError:
			raise KeyError("Commit %s not found" % commit)

		return self._commitData(changesets[0])
def commit ( self , commit ) : try : changesets = self . repo . log ( revrange = commit ) except error . CommandError : raise KeyError ( "Commit %s not found" % commit ) return self . _commitData ( changesets [ 0 ] )
Get data for a given commit

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

		:param commit: repository commit
		:type  commit: string