view scripts/hgcommit.groovy @ 194:ae8921d4c284

Add email notifications for VUI package
author Melissa Diemer <diemer@nwoca.org>
date Thu, 16 Jul 2015 18:19:16 +0100
parents f351338a3b3a
children
line wrap: on
line source

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

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

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