annotate scripts/ssdt-hgflow-init.sh @ 268:f1f4ec4633ca

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