Mercurial > public > develkit
diff init.gradle @ 147:0a452b0017de
debugging linux
author | Dave Smith <smith@nwoca.org> |
---|---|
date | Fri, 25 Oct 2013 21:37:48 +0100 |
parents | 8ef0a02dd76e |
children | 020db0e76d0d |
line wrap: on
line diff
--- a/init.gradle Fri Oct 25 21:36:00 2013 +0100 +++ b/init.gradle Fri Oct 25 21:37:48 2013 +0100 @@ -26,7 +26,9 @@ 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 + println "raw parents: $parents" + parents = parents.trim().split(" ") println "working directory parents: $parents " def parent = parents.find { it != 'default' } gradle.ext.branchName = parent ?: gradle.branchName