#NEWLINE# def stat_range( repo , base , new ) : #NEWLINE# #INDENT# 'Return a diff stat from the history on \'new\' that is not on \'base\'.\n\n    Note that commits that are cherry-picked from new to old will still appear\n    in the diff, this function operates using the commit graph only.\n\n    Raise if git returns a non-zero exit code.\n\n    :repo: a callable supporting git commands, e.g. repo("status")\n    :base: the string name of the base branch\n    :new: the string name of the branch with new commits\n    :returns: a string of the diff stat\n\n    ' #NEWLINE# return repo ( 'diff' , '--stat=80' , ( ( new + '...' ) + new ) , '-M' )