Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2014 14:55:22 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org
Subject:   svn commit: r339143 - svnadmin/hooks/scripts
Message-ID:  <201401081455.s08EtMwh022611@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jan  8 14:55:21 2014
New Revision: 339143
URL: http://svnweb.freebsd.org/changeset/ports/339143

Log:
  Use stricter regex to only match MFH: <branchname>

Modified:
  svnadmin/hooks/scripts/mfh.sh

Modified: svnadmin/hooks/scripts/mfh.sh
==============================================================================
--- svnadmin/hooks/scripts/mfh.sh	Wed Jan  8 14:45:13 2014	(r339142)
+++ svnadmin/hooks/scripts/mfh.sh	Wed Jan  8 14:55:21 2014	(r339143)
@@ -6,7 +6,7 @@ REV="$2"
 AUTHOR=$(svnlook author -r "$REV" "$REPOS")
 LOG=$(svnlook log -r "$REV" "$REPOS")
 DIFF=$(svnlook diff -r "$REV" "$REPOS")
-MFH_LINE=$(echo "$LOG" | grep '^MFH:[[:space:]]*[[:alnum:]]')
+MFH_LINE=$(echo "$LOG" | grep "^MFH:[[:space:]]*[[:digit:]]\+Q[[:digit:]]"
 if [ "$MFH_LINE" = "" ]; then
 	exit 0
 fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401081455.s08EtMwh022611>