Added a check for new migrations which haven't been added to the repository.

- Legacy-Id: 14208
This commit is contained in:
Henrik Levkowetz 2017-10-13 13:58:44 +00:00
parent d7618ce26b
commit 2c95e0ed4a

View file

@ -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 }')