comparison init.gradle @ 152:2226a55023e4

debugging linux
author Dave Smith <smith@nwoca.org>
date Fri, 25 Oct 2013 21:45:06 +0100
parents 4a389a9aa896
children 8dbc79c5bbb0
comparison
equal deleted inserted replaced
151:4a389a9aa896 152:2226a55023e4
24 gradle.ext.hgRepositoryUrl = "" 24 gradle.ext.hgRepositoryUrl = ""
25 gradle.ext.branchName = "" 25 gradle.ext.branchName = ""
26 gradle.ext.branchStream = "" 26 gradle.ext.branchStream = ""
27 try { 27 try {
28 gradle.ext.branchName = "hg branch".execute().text.trim() 28 gradle.ext.branchName = "hg branch".execute().text.trim()
29 def parents = 'hg parents --template "\{branches\}\n"'.execute().text 29 def parents = 'hg parents --template "\\{branches\\}\n"'.execute().text
30 println "raw parents: $parents" 30 println "raw parents: $parents"
31 parents = parents.trim().split("\n") 31 parents = parents.trim().split("\n")
32 println "working directory parents: $parents " 32 println "working directory parents: $parents "
33 def parent = parents.find { it != 'default' } 33 def parent = parents.find { it != 'default' }
34 gradle.ext.branchName = parent ?: gradle.branchName 34 gradle.ext.branchName = parent ?: gradle.branchName