#NEWLINE# def make_revision_from_hash( repo , commitHash ) : #NEWLINE# #INDENT# 'Return a \'phlgit_log__Revision\' based on \'commitHash\' from the repo.\n    Raise an exception if the repo does not return a valid FullMessage from the\n    commitHash.\n\n    :repo: a callable supporting git commands, e.g. repo("status")\n    :commitHash: a string containing the hash to get the message of\n    :returns: a \'phlgit_log__Revision\' based on the \'commitHash\'\n\n    ' #NEWLINE# fmt = '%H%n%h%n%ae%n%an%n%ce%n%cn%n%s%n%b' #NEWLINE# fullMessage = repo ( 'log' , ( revision + '^!' ) , ( '--format=' + fmt ) ) #NEWLINE# revision = make_revision_from_full_message ( fullMessage ) #NEWLINE# return revision