Date: Wed, 30 Apr 2008 00:53:34 GMT Message-Id: <200804300053.m3U0rY34025898@svn.freebsd.org> From: peter@FreeBSD.org To: peter@freebsd.org Subject: svn commit: r69 - svnadmin/hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author: peter Date: Wed Apr 30 00:53:34 2008 New Revision: 69 URL: http://svn.freebsd.org/changeset/svntest/69 Log: turn on sizelimit. add eol-style Modified: svnadmin/hooks/post-commit (props changed) svnadmin/hooks/pre-commit (contents, props changed) svnadmin/hooks/pre-lock (props changed) svnadmin/hooks/start-commit (props changed) Modified: svnadmin/hooks/pre-commit ============================================================================== --- svnadmin/hooks/pre-commit Wed Apr 30 00:51:30 2008 (r68) +++ svnadmin/hooks/pre-commit Wed Apr 30 00:53:34 2008 (r69) @@ -62,13 +62,35 @@ . /s/repo/hooks/scripts/env.sh #crash.sh || exit 1 -check-properties.pl "$REPO" "$TXN" || exit 1 + +# Check for access to directories. +# access-check.py + +# Safety belt size check. The seatbelt is 1MB. +# People will hit this regularly. +# Exclusion list is in svnadmin/conf/sizelimit.conf +sizelimit.py "$REPO" "$TXN" 1024000 || exit 1 + + +# POLICY: mime-type must be unset, text/*, application/* or image/* +# POLICY: if a file does has fbsd:nokeywords, then svn:keywords must not be set +# POLICY: if a file has binary chars and no fbsd:notbinary, then pretend its not binary +# POLICY: if a file is binary, then it must have mime application/* or image/* +# POLICY: if a file does not have fbsd:nokeywords, or is binary then svn:keywords must be set +# POLICY: if svn:keywords is set, $ FreeBSD $ must be present and condensed. +# POLICY: If a file has text/*, then it must have eol-style +verify.py "$REPO" "$TXN" || exit 1 + +# check for merge debris detect-merge-conflicts.sh "$REPO" "$TXN" || exit 1 + +# check for upper/lowercase filename conflicts on clients case-insensitive.py "$REPO" "$TXN" || exit 1 + +# fix log message. log-police.py -t "$TXN" "$REPO" || exit 1 -# Nothing yet -# Check for access to directories. +# Nothing else, go ahead. exit 0