From 2c95e0ed4a01f122879544e88a734be678d865ca Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 13 Oct 2017 13:58:44 +0000 Subject: [PATCH] Added a check for new migrations which haven't been added to the repository. - Legacy-Id: 14208 --- bin/mkrelease | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/mkrelease b/bin/mkrelease index ee63bb059..f1aefd2ed 100755 --- a/bin/mkrelease +++ b/bin/mkrelease @@ -178,6 +178,9 @@ changes=$( sed -n "/^$PROJ ($VER.*)/,/^ -- /p" changelog ) [ "$changes" ] || die "No changelog information for $VER found" #note "$changes" +note "Checking for migrations not in SVN" +$do svn st | grep "^[?] .*/migrations/[0-9].*\.py$" && die "There seems to be new migrations which aren't in SVN" + if [ -z "$PERMIT_MIGR_MIX" ]; then note "Checking that we don't have both schema and data migrations ..." cur=$(svn info | awk '/^Revision:/ { print $2 }')