diff scripts/cloneAll.groovy @ 93:f351338a3b3a

adding useful scripts
author smith@nwoca.org
date Wed, 22 Feb 2012 19:14:04 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/cloneAll.groovy	Wed Feb 22 19:14:04 2012 +0000
@@ -0,0 +1,14 @@
+
+def path = "/hg/ssdt/USPS"
+def parent = path.split('/').last()
+def repos =  "ssh ssdt-web-05 -C ls $path".execute().text.split('\n')
+
+println parent
+println repos 
+
+new File(parent).mkdir()
+
+repos.each {
+ println "cloning: $path/$it to $parent/$it ..."
+ println  "hg clone ssh://hg.ssdt-ohio.org/$path/$it $parent/$it".execute().text
+}
\ No newline at end of file