[postgis-tickets] [SCM] PostGIS branch master updated. e8a6e6963aabd995eaaf2b438ecabbc78cab2083

git at osgeo.org git at osgeo.org
Thu Dec 19 04:23:35 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  e8a6e6963aabd995eaaf2b438ecabbc78cab2083 (commit)
      from  de73de55c72f64332b5051bcc71d573cce3ec91a (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 e8a6e6963aabd995eaaf2b438ecabbc78cab2083
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Dec 19 13:23:23 2019 +0100

    Add --ticket-refs-skip-commits switch to check_news.sh

diff --git a/utils/check_news.sh b/utils/check_news.sh
index a027354..2aaff53 100755
--- a/utils/check_news.sh
+++ b/utils/check_news.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 usage() {
-  echo "Usage: $0 [-v] [--ticket-refs] [<sourcedir>]"
+  echo "Usage: $0 [-v] [--ticket-refs] [--ticket-refs-skip-commits=<file>] [<sourcedir>]"
   echo "Sourcedir defaults to one directory above this script"
 }
 
@@ -10,6 +10,7 @@ usage() {
 VERBOSE=no
 TICKET_REFS=no
 RD= # Root source dir
+TICKET_REFS_SKIP_COMMITS=/dev/null
 while [ $# -gt 0 ]; do
   if [ "$1" = "--help" ]; then
     usage
@@ -18,6 +19,9 @@ while [ $# -gt 0 ]; do
     VERBOSE=yes
   elif [ "$1" = "--ticket-refs" ]; then
     TICKET_REFS="yes"
+  elif [ "$1" = "--ticket-refs-skip-commits" ]; then
+    shift
+    TICKET_REFS_SKIP_COMMITS=$1
   elif [ -z "${RD}" ]; then
     RD=$1
   else
@@ -61,7 +65,10 @@ if test "${TICKET_REFS}" = "yes"; then
   # If git is available, check that every ticket reference in
   # commit logs is also found in the NEWS file
   if which git > /dev/null && test -e .git; then
-    git log --grep '#[0-9]\+' |
+    git log --grep '#[0-9]\+' --pretty='format:%H%n%w(800,1,1)%B' |
+      grep -v 'git-svn-id:' |
+      awk 'NR > 1 && /^[^ ]/ { printf "\n" } 1 { printf "%s", $0 }' |
+      grep -wvf $TICKET_REFS_SKIP_COMMITS |
       grep -i ' #[0-9]\+' |
       sed -En 's|#([0-9]+)|\a\1\n|;/\n/!b;s|.*\a||;P;D' |
       sort -nru |

-----------------------------------------------------------------------

Summary of changes:
 utils/check_news.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list