Mercurial > public > develkit
comparison scripts/cloneAll.groovy @ 93:f351338a3b3a
adding useful scripts
author | smith@nwoca.org |
---|---|
date | Wed, 22 Feb 2012 19:14:04 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
92:90325a10fe95 | 93:f351338a3b3a |
---|---|
1 | |
2 def path = "/hg/ssdt/USPS" | |
3 def parent = path.split('/').last() | |
4 def repos = "ssh ssdt-web-05 -C ls $path".execute().text.split('\n') | |
5 | |
6 println parent | |
7 println repos | |
8 | |
9 new File(parent).mkdir() | |
10 | |
11 repos.each { | |
12 println "cloning: $path/$it to $parent/$it ..." | |
13 println "hg clone ssh://hg.ssdt-ohio.org/$path/$it $parent/$it".execute().text | |
14 } |