view cloneAll.py @ 35:76d1ce01cc7a default tip master

Fail build on YAML lint error This patch will cause SwaggerCombine to throw an exception if "--throw" is specified on the command line and there is a lint error in the YAML files. Currently there are no such messages. Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025574.html
author Simon Tooke <stooke@redhat.com>
date Tue, 31 Oct 2017 09:49:01 -0400
parents 7cd7c2bb65d0
children
line wrap: on
line source

#!/bin/python
import subprocess

PATHS = ["agent", "web-gateway", "web-client"]

def getRepo():
    hgrc  = open(".hg/hgrc", "r")
    for repository in hgrc:
        if "default" in repository:
            return repository.split("=")[1].strip()
    return ""

if __name__ == "__main__":
    repo = getRepo()
    for path in PATHS:
        subprocess.call(["hg", "clone", repo + "/" + path])