changeset 2:7cd7c2bb65d0

Script to download all sources review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-June/023528.html reviewed-by: jerboaa
author Mario Torre <neugens.limasoftware@gmail.com>
date Thu, 08 Jun 2017 14:02:14 +0200
parents af1ff6ea8e2a
children d1b78dcca129
files .hgignore cloneAll.py
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- /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])