SVN Hooks to require log message, limit size and file type
From: David Xie <ddxie.cn_at_gmail.com>
Date: Wed, 12 Jan 2011 09:46:58 +0800
Hello,
I am looking for a hook to require log message when commit. I succeded to do
At the same time, I want to limit size less than 10MB and forbid .zip .7z
I post my pre-commit at the end.
Would someone give me some help? Great thanks!
Regards,
pre-commit :
files=$($SVNLOOK changed -t $TXN $REPOS |awk '{print $2}')
#check file type
#check file size
done
#All checks passed, so allow the commit.
|
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.