Ejemplo n.º 1
0
def commits(repo, branch):
    "Outputs all commits in repo that are in pe-modules-vanagon"

    vanagon = PeModulesVanagon(branch)
    commits = vanagon.commits(repo)

    project = Repo(repo, branch)
    project_commits = project.commits()

    in_build = [c for c in project_commits if c['sha'] in commits]

    for s in in_build:
        commit = 'commit: {}'.format(s['sha'])
        output = [commit]
        output.extend(s['message'].split('\n'))
        click.echo('\n\t'.join(output))
Ejemplo n.º 2
0
def missing(repo, branch):
    "DO NOT USE - Show commits in repo that have not made it into pe-modules-vanagon"

    vanagon = PeModulesVanagon(branch)
    commits = vanagon.commits(repo)

    project = Repo(repo, branch)
    project_commits = project.commits()

    in_build = [c for c in project_commits if c['sha'] not in commits]

    for s in in_build:
        click.echo(u'commit {}'.format(s['sha']))
        click.echo(u'')
        for l in s['message'].split('\n'):
            click.echo(u'\t{}'.format(l))
        click.echo(u'')