# HG changeset patch # User Mario Torre # Date 1496923334 -7200 # Node ID 7cd7c2bb65d0506b2513c2787b6becc0ed95421e # Parent af1ff6ea8e2a45c655ce41ec67874f6e16b4b6f4 Script to download all sources review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-June/023528.html reviewed-by: jerboaa diff -r af1ff6ea8e2a -r 7cd7c2bb65d0 .hgignore --- a/.hgignore Mon May 08 14:51:37 2017 +0200 +++ b/.hgignore Thu Jun 08 14:02:14 2017 +0200 @@ -33,3 +33,4 @@ *.versionsBackup *.iml .idea/* +*.DS_Store diff -r af1ff6ea8e2a -r 7cd7c2bb65d0 cloneAll.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cloneAll.py Thu Jun 08 14:02:14 2017 +0200 @@ -0,0 +1,16 @@ +#!/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])