Re: Post commit script for losers who steal even revisions
From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-25 01:15:24 CEST
On Aug 24, 2006, at 23:16, Young, Jason (GE Indust, GE Fanuc) wrote:
> We have a user here that watches the revision numbers, and when it's
Ha! Brilliant. :-)
Here's a pre-commit hook for Unix/Linux/Mac OS X. (Sorry; I'm not up
Note that the revision number isn't assigned until after the pre-
#!/bin/sh
BANNED_AUTHORS="larry curly moe"
SVNLOOK=/opt/local/bin/svnlook
REPO="$1"
AUTHOR=`$SVNLOOK author -t "$TXN" "$REPO"`
HEAD_REV=`$SVNLOOK youngest "$REPO"`
echo "$AUTHOR may not commit revision $NEXT_REV" 1>&2
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.