view scripts/hgall.groovy @ 123:6f1918544f7f

Add test to cleanLocal to ensure local repo was removed
author smith@nwoca.org
date Wed, 06 Feb 2013 19:58:34 +0000
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
      
  }
}