Re: proposing svn write for public repos
Clifford Wolf <[email protected]> Mon, 2 Jul 2007 15:45:51 +0200
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
yours,
- clifford
--
"A moment of convenience, a lifetime of regret."
- David Moon on the TECO editor