def CreateDescriptionFromLog(args):
    'Pulls out the commit log to use as a base for the CL description.'
    log_args = []
    if ((len(args) == 1) and (not args[0].endswith('.'))):
        log_args = [(args[0] + '..')]
    elif ((len(args) == 1) and args[0].endswith('...')):
        log_args = [args[0][:(- 1)]]
    elif (len(args) == 2):
        log_args = [((args[0] + '..') + args[1])]
    else:
        log_args = args[:]
    return RunGit((['log', '--pretty=format:%s\n\n%b'] + log_args))
Pulls out the commit log to use as a base for the CL description.
def CreateDescriptionFromLog(args):
    
    log_args = []
    if ((len(args) == 1) and (not args[0].endswith('.'))):
        log_args = [(args[0] + '..')]
    elif ((len(args) == 1) and args[0].endswith('...')):
        log_args = [args[0][:(- 1)]]
    elif (len(args) == 2):
        log_args = [((args[0] + '..') + args[1])]
    else:
        log_args = args[:]
    return RunGit((['log', '--pretty=format:%s\n\n%b'] + log_args))