# HG changeset patch # User Dave Smith # Date 1382733360 -3600 # Node ID 8ef0a02dd76e93fa8b698d70993bf44517862715 # Parent cea4e793a3f4bfde33ff6f0f14fe6c8b2682da62 fix escaping diff -r cea4e793a3f4 -r 8ef0a02dd76e init.gradle --- a/init.gradle Fri Oct 25 21:29:39 2013 +0100 +++ b/init.gradle Fri Oct 25 21:36:00 2013 +0100 @@ -26,7 +26,7 @@ gradle.ext.branchStream = "" try { gradle.ext.branchName = "hg branch".execute().text.trim() - def parents = "hg parents --template \"{branch} \"".execute().text.trim().split(" ") + def parents = 'hg parents --template "{branch} "'.execute().text.trim().split(" ") println "working directory parents: $parents " def parent = parents.find { it != 'default' } gradle.ext.branchName = parent ?: gradle.branchName