Ejemplo n.º 1
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        elif message['tree'] != branch:
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 2
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        elif message['tree'] != branch:
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 3
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            continue

        if not message.has_key("commit"):
            return False
        elif message["tree"] != branch:
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 4
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if 'commit' in series['messages'][0]['pull-request']:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 5
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if "commit" in series["messages"][0]["pull-request"]:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            continue

        if not message.has_key("commit"):
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 6
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if 'commit' in series['messages'][0]['pull-request']:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        else:
            committed = True

    return committed
Ejemplo n.º 7
0
def is_reviewed(series):
    found = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            if 'Reviewed-by' in message['tags']:
                return True
            continue

        if 'Reviewed-by' not in message['tags']:
            return False

        found = True

    return found
Ejemplo n.º 8
0
def is_reviewed(series):
    found = False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            if "Reviewed-by" in message["tags"]:
                return True
            continue

        if "Reviewed-by" not in message["tags"]:
            return False

        found = True

    return found
Ejemplo n.º 9
0
def is_reviewed(series):
    found = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            if 'Reviewed-by' in message['tags']:
                return True
            continue

        if 'Reviewed-by' not in message['tags']:
            return False

        found = True

    return found
Ejemplo n.º 10
0
def any_committed(series):
    for message in series['messages']:
        if message.has_key('commit'):
            return True
    return False
Ejemplo n.º 11
0
def any_committed(series):
    for message in series["messages"]:
        if message.has_key("commit"):
            return True
    return False
Ejemplo n.º 12
0
def any_applied(series):
    for message in series['messages']:
        if message.has_key('commit'):
            return True
    return False