comparison init50-git.gradle @ 344:0bef709263cd

add println for debugging
author Marc Davis <marc.davis@mcoecn.org>
date Wed, 14 Jun 2023 14:38:11 -0400
parents 54614542f0f7
children 172495bee8a1
comparison
equal deleted inserted replaced
343:54614542f0f7 344:0bef709263cd
808 } 808 }
809 .findAll { it != null } 809 .findAll { it != null }
810 .sort { v1, v2 -> v2 <=> v1 } 810 .sort { v1, v2 -> v2 <=> v1 }
811 811
812 def branches = "git branch --remote".execute().text.split("\n") 812 def branches = "git branch --remote".execute().text.split("\n")
813 .findAll { it.contains('release') || it.contains('hotfix') } 813 .findAll {
814 println "Found branch ($it)"
815 it.contains('release') || it.contains('hotfix')
816 }
814 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } 817 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' }
815 .collect { new Version(*it.split('\\.')*.toInteger()) } 818 .collect { new Version(*it.split('\\.')*.toInteger()) }
816 819
817 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 } 820 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 }
818 results.each { println it } 821 results.each { println it }