Re: SVN Hooks to require log message, limit size and file type
From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 12 Jan 2011 22:19:39 -0500
On Tue, Jan 11, 2011 at 8:46 PM, David Xie <ddxie.cn_at_gmail.com> wrote:
I have a pre-commit hook at http://db.tt/H3o1i7S that will verify your
Does your hook succeed in preventing files with your banned suffixes
After you calculate "filesize" add the following line:
echo "File size for $f is $filesize" 1>&2
Then, make the last line in your hook "exit 1" instead of "exit 0".
This will print out the file size of all the files you're attempting
When you attempt to commit, you should see a failed commit and a bunch
-- David Weintraub qazwart_at_gmail.comReceived on 2011-01-13 04:20:17 CET |
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.