#NEWLINE# def get_range_to_here_hashes( repo , start ) : #NEWLINE# #INDENT# 'Return a list of strings corresponding to commits from \'start\' to here.\n\n    The list begins with the revision closest to but not including \'start\'.\n    Raise a ValueError if any of the returned values are not valid hexadecimal.\n\n    :repo: a callable supporting git commands, e.g. repo("status")\n    :start: a reference that log will understand\n    :returns: a list of strings corresponding to commits from \'start\' to here.\n\n    ' #NEWLINE# hashes = repo ( 'log' , ( start + '..' ) , '--format=%H' ) . split ( ) #NEWLINE# if ( not all ( ( ( c in string . hexdigits ) for s in hashes for c in s ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'phlgit_log__getRangeToHereHashes() invalid hashes\n' + str ( hashes ) ) ) #NEWLINE# #UNINDENT# hashes . reverse ( ) #NEWLINE# return hashes