view scripts/hgall.groovy @ 202:b217dc3b654a

USASR-1835: Attempt to fix quoting of database name in sql
author Christopher Springer <springer@nwoca.org>
date Fri, 21 Aug 2015 12:40:01 +0100
parents f351338a3b3a
children
line wrap: on
line source

cmd = args ? args.join(' ') : 'out'

new File(".").eachDirRecurse { d ->

   if  ( new File(d,".hg").exists() ) {   
     println "$d.absolutePath: $cmd \n-----------------------------------"      
     println  "hg -R ${d.absolutePath} ${cmd}".execute().text
      
  }
}