[rock-devel] proposing svn write for public repos

Benjamin Schieder blindcoder at rocklinux.org
Mon Jul 2 15:48:49 CEST 2007


On 02.07.2007 15:45:51, Clifford Wolf wrote:
> Hi,
> 
> On Mon, Jul 02, 2007 at 03:27:45PM +0200, Benjamin Schieder wrote:
> > > The hook should also check for the right commit message format and
> > > information so there is no conflict with fixauthor.spl (the SPL script
> > > which is parsing the commit messages and setting the author revision
> > > property according to it).
> > 
> > IIRC fixautho.spl correctly, that can be done by these two lines in pre-commit:
> > 
> > read line < <( $SVNLOOK log -t "$TXN" "$REPOS" )
> > [ "${line% *}" == "${line}" ] && exit 1
> 
> It should check if the author name which is part of the commit message
> matches the current user name, so fixauthor.spl (1) does not send mails
> every 15 minutes about an unknown name in the commit message and (2) does
> not change the author revision property and so it becomes impossible to
> track who has commited what.

read line < <( $SVNLOOK log -t "$TXN" "$REPOS" )
read author < <( $SVNLOOK author -t "$TXN" "$REPOS" )
if ! grep -q "${author}|${line}" /path/to/fixauthor.cfg ; then
	echo "Please add your name in the first line!" >&2
	exit 1
fi

Change grep parameter to however fixauthor has it.


Greetings,
	Benjamin
-- 
 _  _     _   _            _   
| \| |___| |_| |_  __ _ __| |__
| .` / -_)  _| ' \/ _` / _| / /
|_|\_\___|\__|_||_\__,_\__|_\_\
| |  (_)_ _ _  ___ __
| |__| | ' \ || \ \ /
|____|_|_||_\_,_/_\_\
Play Nethack anywhere with an x86 computer:
	http://www.crash-override.net/nethacklinux.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.rocklinux.net/pipermail/rock-devel/attachments/20070702/6107664d/attachment.bin


More information about the rock-devel mailing list