Mercurial > public > develkit
diff init.gradle @ 146:8ef0a02dd76e
fix escaping
author | Dave Smith <smith@nwoca.org> |
---|---|
date | Fri, 25 Oct 2013 21:36:00 +0100 |
parents | cea4e793a3f4 |
children | 0a452b0017de |
line wrap: on
line diff
--- 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