view scripts/hgall.groovy @ 201:e721a977726b

Revoke ability to connect to database before attempting to drop it for task database(Drop|Create)
author Christopher Springer <springer@nwoca.org>
date Fri, 21 Aug 2015 12:32:03 +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
      
  }
}