[PATCH 1 of 2] Build script: Do not require branch or tag in all repositories

Wald Commits scm-commit at wald.intevation.org
Mon Jan 22 17:02:57 CET 2018


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1516636743 -3600
# Branch 3.2.x
# Node ID f5fa2467f9c063217ee0d568c6aadbd2838b685b
# Parent  0d7c8c943b608989f463b856399f580cd784b3d5
Build script: Do not require branch or tag in all repositories.

diff -r 0d7c8c943b60 -r f5fa2467f9c0 contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh	Mon Jan 22 16:38:32 2018 +0100
+++ b/contrib/make_flys_release/make_release.sh	Mon Jan 22 16:59:03 2018 +0100
@@ -151,8 +151,9 @@
     cd $repo
     if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ]
     then
-        echo "ERROR: No tag or branch $VERSION found in repository of $repo!"
-        exit 1
+        echo "WARNING: No tag or branch $VERSION found in repository of $repo!"
+        echo "         Will fallback to 'default'!"
+        hg up default
     else
         hg up "$VERSION"
     fi


More information about the Dive4Elements-commits mailing list