changeset 149:b6544906db4e

debugging linux
author Dave Smith <smith@nwoca.org>
date Fri, 25 Oct 2013 21:41:30 +0100
parents 020db0e76d0d
children c11943a7f479
files init.gradle
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/init.gradle	Fri Oct 25 21:39:26 2013 +0100
+++ b/init.gradle	Fri Oct 25 21:41:30 2013 +0100
@@ -26,9 +26,9 @@
 gradle.ext.branchStream = ""
 try {
 	gradle.ext.branchName = "hg branch".execute().text.trim()
-	def parents = 'hg parents --template "{branches} "'.execute().text
+	def parents = 'hg parents --template "{branches}\n"'.execute().text
 	println "raw parents: $parents"
-	parents = parents.trim().split(" ")
+	parents = parents.trim().split("\n")
 	println "working directory parents: $parents "
 	def parent = parents.find { it != 'default' } 
 	gradle.ext.branchName = parent ?: gradle.branchName