comparison init20.gradle @ 224:f2495310ee69

USASR-2244: Add logging to debug mercurial pull
author Christopher Springer <springer@nwoca.org>
date Thu, 07 Jul 2016 16:46:34 +0100
parents 6cbe6a8597db
children 4015b287c69f
comparison
equal deleted inserted replaced
223:6cbe6a8597db 224:f2495310ee69
796 digest.update(s.bytes); 796 digest.update(s.bytes);
797 new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0') 797 new BigInteger(1, digest.digest()).toString(16).padLeft(32, '0')
798 } 798 }
799 799
800 private findSnapshotVersion() { 800 private findSnapshotVersion() {
801 "hg pull".execute() 801 logger.info "hg pull".execute()
802 def versions = "hg branches --closed".execute().text.split('\n').findAll { 802 def versions = "hg branches --closed".execute().text.split('\n').findAll {
803 it.startsWith( 'release') || it.startsWith( 'hotfix') 803 it.startsWith( 'release') || it.startsWith( 'hotfix')
804 }.collect { 804 }.collect {
805 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v' 805 it.replaceAll('\\s+',' ').split(' ')[0].split('/')[1] - 'v'
806 }.collect { 806 }.collect {