comparison scripts/ssdt-hgflow-init.sh @ 208:f200b931ea9d

add release and hgflow scripts
author smith@nwoca.org
date Sat, 19 Dec 2015 14:26:46 +0000
parents
children
comparison
equal deleted inserted replaced
207:7a17678c9a73 208:f200b931ea9d
1 #!/bin/sh
2 #
3 # hg flow init for SSDT repositories
4 #
5 if [ -f .hgflow ]
6 then
7 echo ".hgflow already exists. Do not re-initialize!"
8 exit 0
9 fi
10
11
12 set -e
13 set -x
14 die () {
15 echo "$1"
16 return 1
17 }
18 # Enable hg flow with SSDT conventions.
19 # variances from hgflow's default:
20 # master stream: [default] production
21 # develop stream: [develop] default
22 cat > .hgflow << EOF
23 [branchname]
24 master = production
25 develop = default
26 feature = feature/
27 release = release/
28 hotfix = hotfix/
29 support = support/
30 version_prefix = ""
31 EOF
32 hg flow init -f