diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/ssdt-hgflow-init.sh	Sat Dec 19 14:26:46 2015 +0000
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# hg flow init for SSDT repositories
+#
+if [ -f .hgflow ]
+  then
+    echo ".hgflow already exists. Do not re-initialize!"
+    exit 0
+fi
+ 
+ 
+set -e
+set -x
+die () {
+  echo "$1"
+  return 1
+}
+# Enable hg flow with SSDT conventions.
+# variances from hgflow's default:
+#  master stream:  [default] production
+#  develop stream: [develop] default
+cat > .hgflow << EOF
+[branchname]
+master = production
+develop = default
+feature = feature/
+release = release/
+hotfix = hotfix/
+support = support/
+version_prefix = ""
+EOF
+hg flow init -f