view scripts/hgall.groovy @ 248:c8c8766492c5

USASR-2891: Update metrics.gradle to support update to Gradle v4.2.1 and Sonar v2.5
author Christopher Springer <springer@nwoca.org>
date Mon, 23 Oct 2017 18:52:24 +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
      
  }
}