Index: svnadmin/hooks/scripts/detect-filename.sh =================================================================== --- svnadmin/hooks/scripts/detect-filename.sh (revision 443729) +++ svnadmin/hooks/scripts/detect-filename.sh (revision 443730) @@ -1,31 +1,40 @@ #!/bin/sh # pre-commit hook to detect files containing not allowed characters # $FreeBSD$ REPO=$1 TXN=$2 SVNLOOK=/usr/local/bin/svnlook # Check arguments if [ -z "$REPO" -o -z "$TXN" ]; then echo "Syntax: $0 path_to_repos txn_id" >&2 exit 1 fi # Approved by portmgr gets a free pass $SVNLOOK log -t "$TXN" "$REPO" | grep -q 'portmgr' && exit 0 # We scan through the transaction diff, looking for files with colon in the name if $SVNLOOK changed -t "$TXN" "$REPO" | grep -q -E '^A.*[:@]'; then echo "Some files in your commit have a colon (:) or (@) in the name" >&2 echo "which is not allowed. Use _ instead for patches." >&2 echo "Or even better, generate your patches with make makepatch." >&2 echo "For further information please read:" >&2 echo "http://www.freebsd.org/doc/en/books/porters-handbook/slow-patch.html" >&2 echo "Please fix this and try committing again." >&2 exit 1 fi +# Look for new py3 ports +if $SVNLOOK changed -t "$TXN" "$REPO" | grep -q -E '^A.*/py3'; then + echo "Please do not add new py3 slave ports at this time. FLAVORS" >&2 + echo "support is coming soon which will remove the need for these kind of" >&2 + echo "slave ports. Having new ones come in slows down development for" >&2 + echo "FLAVORS support." >&2 + exit 1 +fi + # No files with invalid chars were detected exit 0