make trunk read-only

This commit is contained in:
Laurent Rineau 2012-01-04 17:44:04 +00:00
parent 7214fb2b3c
commit a40fea01b4
1 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,13 @@ if [[ $? != 0 ]]; then
exit 1
fi
# Freeze trunk
if $SVNLOOK dirs-changed -t "$TXN" "$REPOS" | grep -qE '^trunk'; then
echo "" >&2
echo "trunk is now read-only!" >&2
exit 1
fi
# Check that the author of this commit has the rights to perform
# the commit on the files and directories being modified.
#/usr/lib/subversion/hook-scripts/commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1