[postgis-tickets] [SCM] PostGIS branch master updated. 705f1e34ba08b2202adf8acb075125bd579c323d
git at osgeo.org
git at osgeo.org
Fri Dec 20 07:14:01 PST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 705f1e34ba08b2202adf8acb075125bd579c323d (commit)
from e1823efbe5ee607bcda3198afb86765e7df1ff57 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 705f1e34ba08b2202adf8acb075125bd579c323d
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Dec 20 16:13:03 2019 +0100
NEWS checker now also checks in stable branches for ticket refs
This is to give an hint about when a ticket reference is really
completely missing OR is belongs to an in-dev stable branch.
diff --git a/utils/check_news.sh b/utils/check_news.sh
index 04ac809..b27753e 100755
--- a/utils/check_news.sh
+++ b/utils/check_news.sh
@@ -21,7 +21,7 @@ while [ $# -gt 0 ]; do
TICKET_REFS="yes"
elif [ "$1" = "--ticket-refs-skip-commits" ]; then
shift
- TICKET_REFS_SKIP_COMMITS=$1
+ TICKET_REFS_SKIP_COMMITS=$( cd $( dirname $1 ) && pwd )
elif [ -z "${RD}" ]; then
RD=$1
else
@@ -79,7 +79,38 @@ if test "${TICKET_REFS}" = "yes"; then
{ failures=0; while read ref; do
ref="#${ref}"
if ! grep -qw "${ref}" NEWS; then
- echo "FAIL: Ticket ${ref} MISSING from NEWS"
+ # See if it is found in any stable branch older than this one
+ # and hint if found
+ foundin=
+ for b in $(
+ git branch --list stable-* |
+ sort -n | sed '/^\*/q' | tac |
+ grep -v '\*'
+ )
+ do
+ if git show $b:NEWS |
+ grep -qw "${ref}"
+ then
+ foundin=$b
+ break
+ fi
+ done
+ if test -n "$foundin"; then
+ # Check if the match is in a published version
+ if git show $foundin:NEWS |
+ sed '/^[0-9]\{4\}\/[0-9]\{2\}\/[0-9]\{2\}/q' |
+ grep -qw "${ref}"
+ then
+ # The match is in a still unpublished section, this should
+ # not be considered an error in development, but should be
+ # fixed before closing the releasing.
+ echo "WARN: Ticket ${ref} missing from NEWS (but found in dev section of branch $foundin)"
+ else
+ echo "FAIL: Ticket ${ref} missing from NEWS (and found in release from branch $foundin!)"
+ fi
+ else
+ echo "FAIL: Ticket ${ref} MISSING from NEWS (here and in older branches)"
+ fi
failures=$((failures+1))
#exit 1
else
-----------------------------------------------------------------------
Summary of changes:
utils/check_news.sh | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list