svn commit: r280265 - svnadmin/hooks/scripts

Bryan Drewery bdrewery at FreeBSD.org
Thu Mar 19 16:14:28 UTC 2015


Author: bdrewery
Date: Thu Mar 19 16:14:27 2015
New Revision: 280265
URL: https://svnweb.freebsd.org/changeset/base/280265

Log:
  Fix dfilter script to support PR lines with commas.
  
  PR:		190866

Modified:
  svnadmin/hooks/scripts/notify_bz.sh

Modified: svnadmin/hooks/scripts/notify_bz.sh
==============================================================================
--- svnadmin/hooks/scripts/notify_bz.sh	Thu Mar 19 15:55:02 2015	(r280264)
+++ svnadmin/hooks/scripts/notify_bz.sh	Thu Mar 19 16:14:27 2015	(r280265)
@@ -14,7 +14,7 @@ if [ -z "$REV" -o -z "$REPO" -o ! -d "$R
   exit 1
 fi
 
-PRS="$(svnlook info "$REPO" -r "$REV" | grep -e '^[[:space:]]*[pP][rR]:[[:space:]]*'|grep -Eo '([a-zA-Z]+\/)*[^[]([0-9]+)[^]]'|sed -Ee 's,[[:space:]],,g' -e 's,[a-zA-Z]+\/,,g')"
+PRS="$(svnlook info "$REPO" -r "$REV" | grep -e '^[[:space:]]*[pP][rR]:[[:space:]]*'|grep -Eo '([a-zA-Z]+\/)*[^[]([0-9]+)[^],]'|sed -Ee 's,[[:space:]],,g' -e 's,[a-zA-Z]+\/,,g')"
 
 if [ -z "$PRS" ]; then
   exit 0


More information about the svn-src-svnadmin mailing list