Re: proposing svn write for public repos
Benjamin Schieder <[email protected]> Mon, 2 Jul 2007 15:48:49 +0200
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1154827893==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ"
Content-Disposition: inline
--eqp4TxRxnD4KrmFZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 02.07.2007 15:45:51, Clifford Wolf wrote:
> Hi,
>=20
> 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).
> >=20
> > IIRC fixautho.spl correctly, that can be done by these two lines in pre=
-commit:
> >=20
> > read line < <( $SVNLOOK log -t "$TXN" "$REPOS" )
> > [ "${line% *}" =3D=3D "${line}" ] && exit 1
>=20
> 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
--=20
_ _ _ _ _ =20
| \| |___| |_| |_ __ _ __| |__
| .` / -_) _| ' \/ _` / _| / /
|_|\_\___|\__|_||_\__,_\__|_\_\
| | (_)_ _ _ ___ __
| |__| | ' \ || \ \ /
|____|_|_||_\_,_/_\_\
Play Nethack anywhere with an x86 computer:
http://www.crash-override.net/nethacklinux.html
--eqp4TxRxnD4KrmFZ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFGiQJBAsME5O4xgqgRAi7mAKDa8NCv67jS8C4QuVsoQsT40BQYBACg5SH+
7JGh6vqA62W/T1CJ+HXcmYE=
=t1Pr
-----END PGP SIGNATURE-----
--eqp4TxRxnD4KrmFZ--
--===============1154827893==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
rock-devel mailing list
[email protected]
http://www.rocklinux.net/mailman/listinfo/rock-devel
--===============1154827893==--