#NEWLINE# def write_log( repo , log ) : #NEWLINE# #INDENT# 'Overwrite the landinglog with the supplied iterable of LogItem.\n\n    Will truncate the log to _MAX_LOG_LENGTH entries.\n\n    :repo: a callable supporting git commands, e.g. repo("status")\n    :log: the iterable to write to the landing log, each entry is a LogItem\n    :returns: None\n\n    ' #NEWLINE# log = log [ : _MAX_LOG_LENGTH ] #NEWLINE# _write_log_raw ( repo , '\n' . join ( ( ' ' . join ( i ) for i in log ) ) )