comparison init40-git.gradle @ 312:0a6b93585fbf

use git flow commands
author Marc Davis <davis@ssdt-ohio.org>
date Wed, 01 Feb 2023 13:13:29 -0500
parents 7bf282e58ce7
children 7ca1fbf8636a
comparison
equal deleted inserted replaced
311:69ef3d16fb19 312:0a6b93585fbf
318 println() 318 println()
319 println("-" * 60) 319 println("-" * 60)
320 println "DRY RUN".center(60) 320 println "DRY RUN".center(60)
321 println("-" * 60) 321 println("-" * 60)
322 322
323 println "hg flow ${releaseStream} start v${releaseVersion} --dirty --dry-run".execute().text 323 println "git flow ${releaseStream} start v${releaseVersion} --dry-run".execute().text
324 324
325 println "-" * 60 325 println "-" * 60
326 326
327 if (!confirmPrompt("Continue?")) { 327 if (!confirmPrompt("Continue?")) {
328 throw new BuildCancelledException("release branching canceled by user request") 328 throw new BuildCancelledException("release branching canceled by user request")
329 } 329 }
330 330
331 println "hg flow ${releaseStream} start v${releaseVersion} --dirty".execute().text 331 println "git flow ${releaseStream} start v${releaseVersion} ".execute().text
332 println "hg update ${releaseStream}/v${releaseVersion}".execute().text 332 println "git checkout ${releaseStream}/v${releaseVersion}".execute().text
333 333
334 setBranchInfo() 334 setBranchInfo()
335 335
336 println "-" * 60 336 println "-" * 60
337 println " Be sure to execute 'releaseLock' task to update the release.lock file before proceeding." 337 println " Be sure to execute 'releaseLock' task to update the release.lock file before proceeding."