diff init.gradle @ 154:6666e1cd8bae

remove debugging. patch for non-merge dirs
author Dave Smith <smith@nwoca.org>
date Fri, 25 Oct 2013 21:59:01 +0100
parents 8dbc79c5bbb0
children 6389a03379a6
line wrap: on
line diff
--- a/init.gradle	Fri Oct 25 21:54:20 2013 +0100
+++ b/init.gradle	Fri Oct 25 21:59:01 2013 +0100
@@ -27,8 +27,7 @@
 
 	gradle.ext.branchName = "hg branch".execute().text.trim()
 	def rawParents = 'hg parents'.execute().text
-	println "raw parents: $rawParents"
-	def parent = rawParents.split('\n').find { it.startsWith("branch") }?.split(":")[1].trim()	
+	def parent = rawParents.split('\n').find { it.startsWith("branch") }?.split(":")?.getAt(1)?.trim()	
 	gradle.ext.branchName = parent ?: gradle.branchName
 	
 try {